23 namespace experimental {
25 template <
class ElementType>
29 using element_type = ElementType;
30 using reference = ElementType&;
31 using data_handle_type = ElementType*;
33 MDSPAN_INLINE_FUNCTION_DEFAULTED constexpr
default_accessor() noexcept =
default;
35 MDSPAN_TEMPLATE_REQUIRES(
36 class OtherElementType,
38 _MDSPAN_TRAIT(is_convertible, OtherElementType(*)[], element_type(*)[])
41 MDSPAN_INLINE_FUNCTION
44 MDSPAN_INLINE_FUNCTION
45 constexpr data_handle_type
46 offset(data_handle_type p,
size_t i)
const noexcept {
50 MDSPAN_FORCE_INLINE_FUNCTION
51 constexpr reference access(data_handle_type p,
size_t i)
const noexcept {
Definition: default_accessor.hpp:26