indexed_span¶
-
template<typename Value, typename Indexer>
class indexed_span¶ Span-like class which allows accessing elements through a custom indexer.
indexed_span
does not own the data, and its size is always known at compile time (it always cover the fullIndexer
range). It is multidimensional if the Indexer is. It is related tostd::span<T, std::static_extent>
and has a similar interface.
The primary use case for indexed_span
is that it is the type returned
by a multidimensional indexed_array
when accessing a lower-rank
dimension via the slice()
method.
Construction and destruction¶
Constructors |
|
---|---|
|
default constructor is deleted |
copy/move operators defaulted |
|
constructor from a |
Member functions¶
Data access¶
Functions always present |
|
---|---|
Element access (range-checked) |
|
Element access (unchecked) |
|
Access to raw storage |
|
Access to first element |
|
Access to last element |
|
Multidimensional specific |
|
Access to subrank |
Observers¶
Checks sequence for emptiness |
|
Returns the size of the sequence |
Iteration¶
Iterator to start of sequence |
|
Iterator past the end of the sequence |
|
Iterator to start of reverse sequence |
|
Iterator past the end of the reverse sequence |