5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_CONSTANT_ACCESSOR_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_CONSTANT_ACCESSOR_HPP_
8#include "arene/base/stdlib_choice/cstddef.hpp"
9#include "arene/base/stdlib_choice/is_abstract.hpp"
10#include "arene/base/stdlib_choice/is_object.hpp"
18template <
typename ElementType>
Accessor policy for mdspan which always returns the same value.
Definition constant_accessor.hpp:19
constant_accessor offset_policy
The type of the accessor policy for accessing data with an offset — this is constant_accessor ,...
Definition constant_accessor.hpp:36
ElementType element_type
The type of the element.
Definition constant_accessor.hpp:27
ElementType data_handle_type
The type of the data handle — this is the same as the element type, so no backing data is required,...
Definition constant_accessor.hpp:30
static constexpr auto access(data_handle_type data_handle, std::size_t) noexcept -> reference
Return the value for the given data handle and index. The index is ignored as the value is always con...
Definition constant_accessor.hpp:44
static constexpr auto offset(data_handle_type data_handle, std::size_t) noexcept -> reference
Return the data handle value to use with the offset policy for the given data handle and index....
Definition constant_accessor.hpp:53
ElementType reference
The type of a "reference" to the element — this is the same as the element type, so no backing data i...
Definition constant_accessor.hpp:33
static constexpr value_type value
Definition integral_constant.hpp:34
Definition accumulate.hpp:37
Definition accumulate.hpp:36
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29