11#ifndef NOARR_STRUCTURES_CUDA_TRAVERSER_HPP
22#define NOARR_STRUCTURES_CUDA_TRAVERSER_HPP
33
4- #include < cstddef>
5-
64#include " ../base/contain.hpp"
75#include " ../base/state.hpp"
86#include " ../base/structs_common.hpp"
@@ -95,7 +93,7 @@ struct cuda_fix_t : strict_contain<T> {
9593 template <IsState State>
9694 requires (has_size<State>())
9795 [[nodiscard]]
98- __device__ inline std:: size_t size (State state) const noexcept {
96+ __device__ inline auto size (State state) const noexcept {
9997 return sub_structure ().size (sub_state (state));
10098 }
10199
@@ -115,7 +113,7 @@ struct cuda_fix_t : strict_contain<T> {
115113 template <class Sub , IsState State, class Start = constexpr_arithmetic::make_const<0 >>
116114 requires (has_offset_of<Sub, cuda_fix_t , State>())
117115 [[nodiscard]]
118- __device__ inline std:: size_t strict_offset_of (State state, Start start = Start{}) const noexcept {
116+ __device__ inline auto strict_offset_of (State state, Start start = Start{}) const noexcept {
119117 return offset_of<Sub>(sub_structure (), sub_state (state), start);
120118 }
121119
@@ -129,7 +127,7 @@ struct cuda_fix_t : strict_contain<T> {
129127 template <IsDim auto QDim, IsState State>
130128 requires (has_length<QDim, State>())
131129 [[nodiscard]]
132- __device__ inline std:: size_t length (State state) const noexcept {
130+ __device__ inline auto length (State state) const noexcept {
133131 return sub_structure ().template length <QDim>(sub_state (state));
134132 }
135133
0 commit comments