|
ADS
Algorithms and Data Structures
|
the iterator by index, random access, on items const if Const More...
#include <ADS/sequence/TieredVector.h>
Public types | |
| using | iterator_category = std::random_access_iterator_tag |
| the category of the iterator, random access | |
| using | value_type = T |
| the type of the items | |
| using | difference_type = std::ptrdiff_t |
| the type of the distances | |
| using | reference = std::conditional_t< Const , const T & , T & > |
| a reference to an item, constant if Const | |
| using | pointer = std::conditional_t< Const , const T * , T * > |
| a pointer to an item, constant if Const | |
Public member functions | |
| Iterator (void)=default | |
| an iterator on no vector | |
| Iterator (Owner *v, std::size_t i) | |
| on the item of index \( i \) of the vector \( v \) | |
| template<bool K> requires ( Const && ! K ) | |
| Iterator (const Iterator< K > &o) | |
| the const iterator from the other one | |
| reference | operator* (void) const |
| the item | |
| pointer | operator-> (void) const |
| the address of the item | |
| reference | operator[] (difference_type k) const |
| the item \( k \) places on | |
| Iterator & | operator++ (void) |
| to the next item | |
| Iterator & | operator-- (void) |
| to the previous item | |
| Iterator | operator++ (int) |
| to the next item, returning the iterator before the step | |
| Iterator | operator-- (int) |
| to the previous item, returning the iterator before the step | |
| Iterator & | operator+= (difference_type k) |
| \( k \) items on | |
| Iterator & | operator-= (difference_type k) |
| \( k \) items back | |
| bool | operator== (const Iterator &o) const |
| equal on the same index | |
| auto | operator<=> (const Iterator &o) const |
| the order of the indices | |
Friends | |
| template<bool> | |
| class | Iterator |
| Iterator | operator+ (Iterator a, difference_type k) |
| Iterator | operator+ (difference_type k, Iterator a) |
| Iterator | operator- (Iterator a, difference_type k) |
| difference_type | operator- (const Iterator &a, const Iterator &b) |
the iterator by index, random access, on items const if Const
| using ADS::TieredVector< T, A >::Iterator< Const >::difference_type = std::ptrdiff_t |
the type of the distances
| using ADS::TieredVector< T, A >::Iterator< Const >::iterator_category = std::random_access_iterator_tag |
the category of the iterator, random access
| using ADS::TieredVector< T, A >::Iterator< Const >::pointer = std::conditional_t< Const , const T * , T * > |
a pointer to an item, constant if Const
| using ADS::TieredVector< T, A >::Iterator< Const >::reference = std::conditional_t< Const , const T & , T & > |
a reference to an item, constant if Const
| using ADS::TieredVector< T, A >::Iterator< Const >::value_type = T |
the type of the items
|
default |
an iterator on no vector
|
inline |
on the item of index \( i \) of the vector \( v \)
|
inline |
the const iterator from the other one
|
inline |
the item
|
inline |
to the next item, returning the iterator before the step
|
inline |
to the next item
|
inline |
\( k \) items on
|
inline |
to the previous item, returning the iterator before the step
|
inline |
to the previous item
|
inline |
\( k \) items back
|
inline |
the address of the item
|
inline |
the order of the indices
|
inline |
equal on the same index
|
inline |
the item \( k \) places on
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |