Forward Iterator (forward_iterator)

Definition

A class forward_iterator that satisfies the requirements of a forward iterator for the value type T, supports the following operations.

Creation

forward_iterator it;

forward_iterator it ( iterator it1);

Operations

iterator& it = iterator it1 Assignment.

bool it == iterator it1 Test for equality: Two iterators are equal if they refer to the same item.

bool it != iterator it1 Test for inequality. The result is the same as !(it == it1).

T& * it Returns the value of the iterator. If forward_iterator is mutable *it = t is valid.
Precondition: it is dereferenceable.

iterator& ++ it Prefix increment operation.
Precondition: it is dereferenceable.

iterator it ++ Postfix increment operation. The result is the same as that of iterator tmp = it; ++it; return tmp;.
Precondition: it is dereferenceable.