# std::reverse_iterator<Iter>::reverse_iterator

From cppreference.com
< cpp‎ | iterator‎ | reverse iterator

| (1) |
reverse_iterator(); |  | (until C++17)
constexpr reverse_iterator(); |  | (since C++17)
| (2) |
explicit reverse_iterator( iterator_type x ); |  | (until C++17)
constexpr explicit reverse_iterator( iterator_type x ); |  | (since C++17)
| (3) |
template< class U > reverse_iterator( const reverse_iterator<U>& other ); |  | (until C++17)
template< class U > constexpr reverse_iterator( const reverse_iterator<U>& other ); |  | (since C++17)

Constructs a new iterator adaptor.

1) Default constructor. The underlying iterator is value-initialized. Operations on the resulting iterator have defined behavior if and only if the corresponding operations on a value-initialized `Iterator` also have defined behavior.
2) The underlying iterator is initialized with `x`.
3) The underlying iterator is initialized with that of `other`.

### Parameters

x | - | iterator to adapt
other | - | iterator adaptor to copy

### Example

| This section is incomplete Reason: no example

### See also

operator= | assigns another iterator (public member function)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/reverse_iterator/reverse_iterator&oldid=50890"