|
ADS
Algorithms and Data Structures
|
the random-access iterator I on pointers read through them, *it being **base; the items are constant More...
#include <ADS/Iterators.h>
Public types | |
| using | iterator_category = std::random_access_iterator_tag |
| random access | |
| using | value_type = std::remove_cvref_t< decltype( **std::declval< I >() ) > |
| the items, those pointed to | |
| using | difference_type = std::iter_difference_t< I > |
| the distances, those of I | |
| using | reference = const value_type & |
| a constant reference to an item | |
| using | pointer = const value_type * |
| a constant pointer to an item | |
Public member functions | |
| IndirectIterator (void)=default | |
| an iterator on nothing | |
| IndirectIterator (I i) | |
| on the item pointed to by *i | |
| reference | operator* (void) const |
| the item pointed to | |
| pointer | operator-> (void) const |
| the address of the item pointed to | |
| reference | operator[] (difference_type k) const |
| the item pointed to \( k \) places on | |
| IndirectIterator & | operator++ (void) |
| to the next pointer | |
| IndirectIterator & | operator-- (void) |
| to the previous pointer | |
| IndirectIterator | operator++ (int) |
| to the next pointer, returning the iterator before the step | |
| IndirectIterator | operator-- (int) |
| to the previous pointer, returning the iterator before the step | |
| IndirectIterator & | operator+= (difference_type k) |
| \( k \) pointers on | |
| IndirectIterator & | operator-= (difference_type k) |
| \( k \) pointers back | |
| bool | operator== (const IndirectIterator &o) const =default |
| equal on the same pointer | |
| auto | operator<=> (const IndirectIterator &o) const =default |
| the order of the iterators on the pointers | |
| I | base (void) const |
| the iterator on the pointers | |
Friends | |
| IndirectIterator | operator+ (IndirectIterator a, difference_type k) |
| IndirectIterator | operator+ (difference_type k, IndirectIterator a) |
| IndirectIterator | operator- (IndirectIterator a, difference_type k) |
| difference_type | operator- (const IndirectIterator &a, const IndirectIterator &b) |
the random-access iterator I on pointers read through them, *it being **base; the items are constant
| using ADS::IndirectIterator< I >::difference_type = std::iter_difference_t< I > |
the distances, those of I
| using ADS::IndirectIterator< I >::iterator_category = std::random_access_iterator_tag |
random access
| using ADS::IndirectIterator< I >::pointer = const value_type * |
a constant pointer to an item
| using ADS::IndirectIterator< I >::reference = const value_type & |
a constant reference to an item
| using ADS::IndirectIterator< I >::value_type = std::remove_cvref_t< decltype( **std::declval< I >() ) > |
the items, those pointed to
|
default |
an iterator on nothing
|
inlineexplicit |
on the item pointed to by *i
|
inlinenodiscard |
the iterator on the pointers
|
inline |
the item pointed to
|
inline |
to the next pointer, returning the iterator before the step
|
inline |
to the next pointer
|
inline |
\( k \) pointers on
|
inline |
to the previous pointer, returning the iterator before the step
|
inline |
to the previous pointer
|
inline |
\( k \) pointers back
|
inline |
the address of the item pointed to
|
default |
the order of the iterators on the pointers
|
default |
equal on the same pointer
|
inline |
the item pointed to \( k \) places on
|
friend |
|
friend |
|
friend |
|
friend |