W3cubDocs

/C++

std::reverse_iterator::operator=

template< class U > 
reverse_iterator& operator=( const reverse_iterator<U>& other );
(until C++17)
template< class U > 
constexpr reverse_iterator& operator=( const reverse_iterator<U>& other );
(since C++17)

The underlying iterator is assigned the value of the underlying iterator of other, i.e. other.base().

Parameters

other - iterator adaptor to assign

Return value

*this.

Example

See also

constructs a new iterator adaptor
(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/operator=