Namespaces
Variants
Views
Actions

operator+(std::move_iterator)

From cppreference.com
< cpp‎ | iterator‎ | move iterator
Revision as of 14:32, 2 November 2012 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
template< class Iterator >

reverse_iterator<Iterator>
    operator+( typename move_iterator<Iterator>::difference_type n,

               const move_iterator<Iterator>& it );

Returns the iterator it incremented by n.

Contents

[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

[edit] See also

advances or decrements the iterator
(public member function) [edit]