Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
uni20::AccessorPolicy Concept Reference

A model of the C++ mdspan AccessorPolicy named requirement. More...

#include <concepts.hpp>

Concept definition

template<class AP>
concept uni20::AccessorPolicy = requires {
typename AP::element_type;
typename AP::data_handle_type;
typename AP::offset_policy;
typename AP::reference;
} && requires(AP a, typename AP::data_handle_type dh, span_offset_t<AP> off) {
{ 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

Detailed Description

A model of the C++ mdspan AccessorPolicy named requirement.

Requirements for AP: