5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_DEFAULT_ACCESSOR_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_DEFAULT_ACCESSOR_HPP_
11#include "arene/base/stdlib_choice/cstddef.hpp"
12#include "arene/base/stdlib_choice/enable_if.hpp"
13#include "arene/base/stdlib_choice/is_abstract.hpp"
14#include "arene/base/stdlib_choice/is_array.hpp"
15#include "arene/base/stdlib_choice/is_convertible.hpp"
16#include "arene/base/stdlib_choice/is_object.hpp"
31template <
class ElementType>
60 class OtherElementType,
ElementType element_type
element type to access
Definition default_accessor.hpp:42
constexpr default_accessor() noexcept=default
default constructor
constexpr auto offset(data_handle_type ptr, std::size_t index) const noexcept -> data_handle_type
apply an offset to a pointer
Definition default_accessor.hpp:79
ElementType * data_handle_type
data handle type Refers to a group of elements. In this case, a pointer.
Definition default_accessor.hpp:48
constexpr auto access(data_handle_type ptr, std::size_t index) const noexcept -> reference
obtain the element at the specified index
Definition default_accessor.hpp:73
default_accessor offset_policy
offset policy type
Definition default_accessor.hpp:40
ElementType & reference
reference type Returned on element to access. In this case, an lvalue reference.
Definition default_accessor.hpp:45
static constexpr value_type value
Definition integral_constant.hpp:34
Definition accumulate.hpp:37
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
Definition accumulate.hpp:36
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29