(1) | ||
reverse_iterator(); | (until C++17) | |
constexpr reverse_iterator(); | (since C++17) | |
(2) | ||
explicit reverse_iterator( Iterator x ); | (until C++17) | |
constexpr explicit reverse_iterator( Iterator 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.
current
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.current
is initialized with x
.other
.x | - | iterator to adapt |
other | - | iterator adaptor to copy |
assigns another iterator (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/iterator/reverse_iterator/reverse_iterator