std::reverse_iterator::operator= - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::reverse_iterator::operator=

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

template< class U > reverse_iterator& operator=( const reverse_iterator<U>& other ); |  |

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

### [edit] Parameters

other | - | iterator adaptor to assign

### [edit] Return value

*this

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

(constructor) | constructs a new iterator adaptor (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/iterator/reverse_iterator/operator%3D&oldid=42017"
Category:

- Todo no example