mrdocs::ArrayView
A non‐owning, read‐only view over a contiguous array of T.
Types
Name |
Description |
Iterator over elements. |
|
Pointer to constant element. |
|
Reference to constant element. |
|
Const reverse iterator over the view. |
|
Signed iterator difference type. |
|
Iterator over elements. |
|
Pointer to constant element. |
|
Reference to constant element. |
|
Reverse iterator over the view. |
|
Unsigned size type. |
|
Element type referenced by the view. |
Member Functions
Name |
Description |
|
Constructors |
Access the element at the specified index with bounds checking. |
|
Return a reference to the last element. |
|
Return an iterator to the first element. |
|
Return a const iterator to the first element. |
|
Return a const iterator one past the last element. |
|
Return a pointer to the underlying data. |
|
Return a view with the last |
|
Return a view with the first |
|
Return true if the view contains no elements. |
|
Return an iterator one past the last element. |
|
Return a reference to the first element. |
|
Return the number of elements in the view. |
|
Access the element at the specified index without bounds checking. |
|
Return a reverse iterator to the last element. |
|
Remove |
|
Remove |
|
Return a reverse iterator one before the first element. |
|
Return the number of elements in the view. |
|
Return a subview starting at |
|
Return a view containing the last |
|
Return a view containing the first |
Static Data Members
Name |
Description |
Sentinel used by slicing helpers to indicate “until the end”. |
Non-Member Functions
Name |
Description |
Create an ArrayView from a C‐style array. |
|
Create an ArrayView from a pointer and count. |
Description
Similar to std::string_view but for arbitrary element type T.
Created with MrDocs