Random‐access iterator over the const elements of an AnySpan.
Synopsis
Declared in <absl/types/any_span.h>
class const_iterator
: public IteratorBase<const_iterator, std::add_const_t<T>>
Description
Also supports implicit conversion from a mutable iterator.
Base Classes
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 |
|
Constructors |
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