operator+(std::reverse_iterator) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# operator+(std::reverse_iterator)

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

[edit template]

template< class Iterator > reverse_iterator<Iterator> operator+( typename reverse_iterator<Iterator>::difference_type n, const reverse_iterator<Iterator>& it ); |  |

Returns the iterator `it` incremented by `n`.

### [edit] Parameters

n | - | the number of positions to increment the iterator
it | - | the iterator adaptor to increment

### [edit] Return value

The incremented iterator, that is reverse_iterator<Iterator>(x.current - n)

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

operator++operator++(int)operator+=operator+operator--operator--(int)operator-=operator- | advances or decrements the iterator (public member function) [edit]

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

- Todo no example