|
ADS
Algorithms and Data Structures
|
the iterator, on items const if Const More...
#include <ADS/sequence/List.h>
Public types | |
| using | iterator_category = std::bidirectional_iterator_tag |
| the category of the iterator, bidirectional | |
| 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 cell | |
| Iterator (Cell *c) | |
| on the item of the cell \( c \), the end if \( c \) is the sentinel | |
| template<bool C> requires ( Const && ! C ) | |
| Iterator (const Iterator< C > &o) | |
| the const iterator from the other one | |
| reference | operator* (void) const |
| the item | |
| pointer | operator-> (void) const |
| the address of the item | |
| Iterator & | operator++ (void) |
| to the next cell | |
| Iterator | operator++ (int) |
| to the next cell, returning the iterator before the step | |
| Iterator & | operator-- (void) |
| to the previous cell | |
| Iterator | operator-- (int) |
| to the previous cell, returning the iterator before the step | |
| bool | operator== (const Iterator &o) const =default |
| equal on the same cell | |
| Cell * | cell (void) const |
| the cell, which is the position of the book | |
the iterator, on items const if Const
| using ADS::List< T, Pooled >::Iterator< Const >::difference_type = std::ptrdiff_t |
the type of the distances
| using ADS::List< T, Pooled >::Iterator< Const >::iterator_category = std::bidirectional_iterator_tag |
the category of the iterator, bidirectional
| using ADS::List< T, Pooled >::Iterator< Const >::pointer = std::conditional_t< Const , const T * , T * > |
a pointer to an item, constant if Const
| using ADS::List< T, Pooled >::Iterator< Const >::reference = std::conditional_t< Const , const T & , T & > |
a reference to an item, constant if Const
| using ADS::List< T, Pooled >::Iterator< Const >::value_type = T |
the type of the items
|
default |
an iterator on no cell
|
inlineexplicit |
on the item of the cell \( c \), the end if \( c \) is the sentinel
|
inline |
the const iterator from the other one
|
inlinenodiscard |
the cell, which is the position of the book
|
inline |
the item
|
inline |
to the next cell, returning the iterator before the step
|
inline |
to the next cell
|
inline |
to the previous cell, returning the iterator before the step
|
inline |
to the previous cell
|
inline |
the address of the item
|
default |
equal on the same cell