operator+(std::move_iterator) (3) - Linux Manuals

operator+(std::move_iterator): operator+(std::move_iterator)

NAME

operator+(std::move_iterator) - operator+(std::move_iterator)

Synopsis


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


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<Iter>(it.base() + n)

Example


 This section is incomplete
 Reason: no example

See also


operator++
operator++(int)
operator+= advances or decrements the iterator
operator+ (public member function)
operator--
operator--(int)
operator-=
operator-