Random-access iterator over the const elements of an AnySpan.
Declared in <absl/types/any_span.h>
class const_iterator
: public IteratorBase<const_iterator, std::add_const_t<T>>
Also supports implicit conversion from a mutable iterator.
| Name | Description |
|---|---|
IteratorBase<const_iterator, std::add_const_t<T>> |
| Name | Description |
|---|---|
difference_type | A signed type used for iterator differences. |
iterator_category | The iterator category (random access). |
pointer | A pointer to an element. |
reference | A reference to an element. |
value_type | The element type with const removed. |
| Name | Description |
|---|---|
const_iterator [constructor] | Constructors |
operator* | Dereferences the iterator. |
operator+ | Returns an iterator advanced by d positions. |
operator++ | Advances the iterator by one position. |
operator+= | Advances the iterator by d positions. |
operator- | Subtraction operators |
operator-- | Moves the iterator back by one position. |
operator-= | Moves the iterator back by d positions. |
operator-> | Accesses members of the current element. |
operator[] | Accesses the element i positions from the current one. |
| Name |
|---|
difference_type |
iterator_category |
pointer |
reference |
value_type |
| Name | Description |
|---|---|
container_ | The span this iterator points into. |
index_ | The current element index. |
| Name | Description |
|---|---|
absl::AnySpan | A type-erased, non-owning view over a random-access sequence. |