A model of the C++ mdspan AccessorPolicy named requirement.
More...
#include <concepts.hpp>
template<class AP>
typename AP::element_type;
typename AP::data_handle_type;
typename AP::offset_policy;
typename AP::reference;
{ a.offset(dh, off) } -> std::convertible_to<typename AP::offset_policy::data_handle_type>;
{ a.access(dh, off) } -> std::same_as<typename AP::reference>;
}
A model of the C++ mdspan AccessorPolicy named requirement.
Definition mdspan/concepts.hpp:62
typename span_offset_type< AP >::type span_offset_t
Convenience alias for accessor_offset_type<AP>::type.
Definition mdspan/concepts.hpp:48
A model of the C++ mdspan AccessorPolicy named requirement.
Requirements for AP:
- nested types: element_type, data_handle_type, offset_policy, reference.
offset(dh, off) returns a type convertible to offset_policy::data_handle_type.
access(dh, off) returns exactly AP::reference. Access may throw when the accessor deliberately applies a throwing transformation. - Template Parameters
-
| AP | The accessor policy to test. |