##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# operator+(std::move_iterator)

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

template< class Iterator > move_iterator<Iterator> operator+( typename move_iterator<Iterator>::difference_type n, const move_iterator<Iterator>& it ); |  | (until C++17)
template< class Iterator > constexpr move_iterator<Iterator> operator+( typename move_iterator<Iterator>::difference_type n, const move_iterator<Iterator>& it ); |  | (since C++17)

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 move_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/move_iterator/operator%2B&oldid=42226"
Category:

- Todo no example