Template Class List::Iterator

Nested Relationships

This class is a nested type of Template Class List.

Class Documentation

template<bool Const>
class Iterator

the iterator, on items const if Const

Public Types

using iterator_category = std::bidirectional_iterator_tag
using value_type = T
using difference_type = std::ptrdiff_t
using reference = std::conditional_t<Const, const T&, T&>
using pointer = std::conditional_t<Const, const T*, T*>

Public Functions

Iterator(void) = default
inline explicit Iterator(Cell *c)
template<bool C>
inline Iterator(const Iterator<C> &o)

the const iterator from the other one

inline reference operator*(void) const
inline pointer operator->(void) const
inline Iterator &operator++(void)
inline Iterator operator++(int)
inline Iterator &operator--(void)
inline Iterator operator--(int)
bool operator==(const Iterator &o) const = default
inline Cell *cell(void) const

the cell, which is the position of the book