Namespaces
Variants
Views
Actions

operator+(std::reverse_iterator)

From cppreference.com
< cpp‎ | iterator‎ | reverse iterator
Revision as of 19:43, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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 reverse_iterator<Iterator>(x.current - n)

[edit] Example

[edit] See also

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