|
| constexpr | StridedView (const Accessor &accessor) |
| | Constructor from a given accessor.
|
| constexpr | StridedView (Accessor &&accessor) |
| | Constructor from a given accessor.
|
| constexpr | StridedView (const StridedView< T, stride, Accessor > &other) |
| | Shallow copy constructor.
|
| constexpr | StridedView (StridedView< T, stride, Accessor > &&other) |
| | Shallow move constructor.
|
| constexpr decltype(auto) | operator[] (size_t idx) |
| | Element access operator.
|
| constexpr decltype(auto) | operator[] (size_t idx) const |
template<typename T, size_t stride, ValidAccessor< T > Accessor>
class mundy::StridedView< T, stride, Accessor >
Concept: Sometimes we'd like to access a contiguous accessor with a stride between elements but without copying the underlying data. This class provides a way to do that.
- Template Parameters
-
| T | The type of the elements |
| stride | The stride between elements |
| Accessor | The type of the contiguous accessor |