|
|
using | difference_type = std::ptrdiff_t |
| | Distance type required by the iterator traits.
|
|
using | value_type = std::remove_reference_t<U> |
| | Type produced by dereferencing.
|
|
using | pointer = std::remove_reference_t<T>* |
| | Pointer type of the underlying array.
|
|
using | reference = typename ReferenceSelector<T, U, !UseProxy>::Type |
| | Dereference result: a proxy wrapper or a plain reference.
|
| using | iterator_category |
| | Iterator category: random access for proxies, contiguous otherwise.
|
|
| | ArrayIterator (pointer ptr) noexcept |
| | Point the iterator at an array element.
|
| reference | operator* () const noexcept |
| | Element at the current position.
|
| ArrayIterator & | operator++ () noexcept |
| | Advance to the next element.
|
| ArrayIterator | operator++ (int) noexcept |
| | Advance, returning the previous position.
|
| ArrayIterator & | operator-- () noexcept |
| | Step back to the previous element.
|
| ArrayIterator | operator-- (int) noexcept |
| | Step back, returning the previous position.
|
| ArrayIterator & | operator+= (int n) noexcept |
| | Advance by several elements.
|
| ArrayIterator & | operator-= (int n) noexcept |
| | Step back by several elements.
|
| reference | operator[] (int n) noexcept |
| | Element at an offset from the current position.
|
| const reference | operator[] (int n) const noexcept |
| | Element at an offset, read-only.
|
|
| ArrayIterator | operator+ (const ArrayIterator &a, int n) noexcept |
| | Advance an iterator.
|
| ArrayIterator | operator+ (int n, const ArrayIterator &a) noexcept |
| | Advance an iterator.
|
| ArrayIterator | operator- (const ArrayIterator &a, int n) noexcept |
| | Step an iterator back.
|
| difference_type | operator- (const ArrayIterator &b, const ArrayIterator &a) noexcept |
| | Distance between two iterators.
|
| std::strong_ordering | operator<=> (const ArrayIterator &a, const ArrayIterator &b) noexcept |
| | Order two iterators.
|
| bool | operator== (const ArrayIterator &a, const ArrayIterator &b) |
| | Compare two iterators.
|
| bool | operator!= (const ArrayIterator &a, const ArrayIterator &b) |
| | Compare two iterators.
|
|
bool | operator== (ArrayIterator it, std::default_sentinel_t)=delete |
| template<class Policy> |
| constexpr bool | operator== (ArrayIterator it, const ArraySentinel< T, Policy > &sentinel) |
| | Compare an iterator with a sentinel.
|
| template<class Policy> |
| constexpr bool | operator!= (ArrayIterator it, const ArraySentinel< T, Policy > &sentinel) |
| | Compare an iterator with a sentinel.
|
| template<class Policy> |
| constexpr bool | operator== (const ArraySentinel< T, Policy > &sentinel, ArrayIterator it) |
| | Compare a sentinel with an iterator.
|
| template<class Policy> |
| constexpr bool | operator!= (const ArraySentinel< T, Policy > &sentinel, ArrayIterator it) |
| | Compare a sentinel with an iterator.
|
template<typename T, typename U>
struct av::ArrayIterator< T, U >
Represents any element of the T* array as light-weight wrapper U