|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Trivial accessor policy: access(p, i) is just p[i].
More...
#include <ah-mdspan.H>
Public Types | |
| using | offset_policy = default_accessor |
| using | element_type = ElementType |
| using | reference = ElementType & |
| using | data_handle_type = ElementType * |
Public Member Functions | |
| constexpr | default_accessor () noexcept=default |
| template<class OtherElementType > requires std::is_convertible_v<OtherElementType (*)[], element_type (*)[]> | |
| constexpr | default_accessor (default_accessor< OtherElementType >) noexcept |
| constexpr reference | access (data_handle_type p, size_t i) const noexcept |
| Access an element from a pointer and an offset. | |
| constexpr data_handle_type | offset (data_handle_type p, size_t i) const noexcept |
Trivial accessor policy: access(p, i) is just p[i].
This is the only accessor policy this polyfill provides (matching std::default_accessor); custom accessors (atomic views, checked views, ...) are out of scope for this header.
Definition at line 525 of file ah-mdspan.H.
| using Aleph::default_accessor< ElementType >::data_handle_type = ElementType * |
Definition at line 530 of file ah-mdspan.H.
| using Aleph::default_accessor< ElementType >::element_type = ElementType |
Definition at line 528 of file ah-mdspan.H.
| using Aleph::default_accessor< ElementType >::offset_policy = default_accessor |
Definition at line 527 of file ah-mdspan.H.
| using Aleph::default_accessor< ElementType >::reference = ElementType & |
Definition at line 529 of file ah-mdspan.H.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Definition at line 536 of file ah-mdspan.H.
|
inlineconstexprnoexcept |
Access an element from a pointer and an offset.
| p | Pointer to the start of the data. |
| i | Linear offset. |
Definition at line 544 of file ah-mdspan.H.
|
inlineconstexprnoexcept |
Definition at line 549 of file ah-mdspan.H.