...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A Forward Iterator is an Input Iterator that guarantees a linear traversal over the sequence.
Forward Iterator does not define any new expressions beyond those defined in Input Iterator. However, some of the restrictions described in Input Iterator are relaxed.
Expression | Expression type |
---|---|
typename i::next | A model of Forward Iterator |
For any forward iterators i and j the following invariants always hold:
i
and j
are dereferenceable and i
is identical to j
, then i::next
is identical to j::next
.
Forward Sequence, Input Iterator, Bidirectional Iterator