Random‐access iterator over the elements of an AnySpan.
Synopsis
Declared in <absl/types/any_span.h>
class iterator
: public IteratorBase<iterator, T>
Base Classes
Name |
Description |
Type Aliases
Name |
Description |
A signed type used for iterator differences. |
|
The iterator category (random access). |
|
A pointer to an element. |
|
A reference to an element. |
|
The element type with const removed. |
Member Functions
Name |
Description |
|
Constructs an invalid iterator. |
Dereferences the iterator. |
|
Returns an iterator advanced by |
|
Advances the iterator by one position. |
|
Advances the iterator by |
|
Subtraction operators |
|
Moves the iterator back by one position. |
|
Moves the iterator back by |
|
Accesses members of the current element. |
|
Accesses the element |
Using Declarations
Protected Data Members
Name |
Description |
The span this iterator points into. |
|
The current element index. |
Friends
Name |
Description |
A type‐erased, non‐owning view over a random‐access sequence. |
Created with MrDocs