Partager via


reverse_iterator Members

Reference

Constructors

reverse_iterator

Constructs a default reverse_iterator or a reverse_iterator from an underlying iterator.

Typedefs

difference_type

A type that provides the difference between two reverse_iterators referring to elements within the same container.

iterator_type

A type that provides the underlying iterator for a reverse_iterator.

pointer

A type that provides a pointer to an element addressed by a reverse_iterator.

reference

A type that provides a reference to an element addressed by a reverse_iterator.

Member Functions

base

Recovers the underlying iterator from its reverse_iterator.

Operators

operator*

Returns the element that a reverse_iterator addresses.

operator+

Adds an offset to an iterator and returns the new reverse_iterator addressing the inserted element at the new offset position.

operator++

Increments the reverse_iterator to the next element.

operator+=

Adds a specified offset from a reverse_iterator.

operator-

Subtracts an offset from a reverse_iterator and returns a reverse_iterator addressing the element at the offset position.

operator--

Decrements the reverse_iterator to the previous element.

operator-=

Subtracts a specified offset from a reverse_iterator.

operator->

Returns a pointer to the element addressed by the reverse_iterator.

operator[]

Returns a reference to an element offset from the element addressed by a reverse_iterator by a specified number of positions.

See Also

Reference

reverse_iterator Class

Thread Safety in the Standard C++ Library

Standard Template Library