|
ADS
Algorithms and Data Structures
|
the bidirectional iterator, on items const if Const More...
#include <ADS/sequence/SEList.h>
Public types | |
| using | iterator_category = std::bidirectional_iterator_tag |
| bidirectional | |
| using | value_type = T |
| the items | |
| using | difference_type = std::ptrdiff_t |
| 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 list | |
| Iterator (Owner *l, Node *u, std::size_t j) | |
| on the item \( j \) of the block \( u \) of l | |
| template<bool K> requires ( Const && ! K ) | |
| Iterator (const Iterator< K > &o) | |
| the constant iterator from the mutable one | |
| reference | operator* (void) const |
| the item | |
| pointer | operator-> (void) const |
| the address of the item | |
| Iterator & | operator++ (void) |
| to the next item, the next block after the last one of a block | |
| 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 | |
| bool | operator== (const Iterator &o) const |
| equal on the same item | |
Friends | |
| template<bool> | |
| class | Iterator |
the bidirectional iterator, on items const if Const
| using ADS::SEList< T >::Iterator< Const >::difference_type = std::ptrdiff_t |
the distances
| using ADS::SEList< T >::Iterator< Const >::iterator_category = std::bidirectional_iterator_tag |
bidirectional
| using ADS::SEList< T >::Iterator< Const >::pointer = std::conditional_t< Const , const T * , T * > |
a pointer to an item, constant if Const
| using ADS::SEList< T >::Iterator< Const >::reference = std::conditional_t< Const , const T & , T & > |
a reference to an item, constant if Const
the items
|
default |
an iterator on no list
|
inline |
on the item \( j \) of the block \( u \) of l
|
inline |
the constant iterator from the mutable one
|
inline |
the item
|
inline |
to the next item, returning the iterator before the step
|
inline |
to the next item, the next block after the last one of a block
|
inline |
to the previous item, returning the iterator before the step
|
inline |
to the previous item
|
inline |
the address of the item
|
inline |
equal on the same item
|
friend |