Class SequenceRange::iterator

Nested Relationships

This class is a nested type of Template Class SequenceRange.

Class Documentation

class iterator

a position of the sequence, read by *; the end is an iterator marked as such, equal to every iterator on a finished position

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = typename S::Item
using difference_type = std::ptrdiff_t
using reference = const value_type&
using pointer = const value_type*

Public Functions

iterator(void) = default
inline iterator(const S *s, typename S::Pos p)
inline reference operator*(void) const
inline pointer operator->(void) const
inline iterator &operator++(void)
inline iterator operator++(int)
inline bool operator==(std::default_sentinel_t) const

at the end, i.e., on a finished position

inline bool operator==(const iterator &o) const
inline S::Pos position(void) const

the position of the book

Public Static Functions

static inline iterator end(const S *s)

the end of the range of s