Share via


move_iterator::operator++

Increments the stored iterator that belongs to this move_iterator. The current element is accessed by the postincrement operator. The next element is accessed by the preincrement operator.

move_iterator& operator++();
move_iterator operator++(int);

Property Value/Return Value

The preincrement version of the operator returns *this.

The postincrement version of the operator returns a copy of *this made before the operator evaluates ++*this.

Remarks

The first (preincrement) operator increments the stored iterator. Then returns *this.

The second (postincrement) operator makes a copy of *this, evaluates ++*this. Then returns the copy.

Requirements

Header: <iterator>

Namespace: std

See Also

Reference

move_iterator Class

<iterator>

Standard Template Library

Other Resources

move_iterator Members

<iterator> Members