W3cubDocs

/C++

operator+(std::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.

Parameters

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

Return value

The incremented iterator, that is move_iterator<Iterator>(x.current + n).

Example

See also

advances or decrements the iterator
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/iterator/move_iterator/operator+