Namespaces
Variants
Views
Actions

operator+(std::reverse_iterator)

From cppreference.com
< cpp‎ | iterator‎ | reverse iterator
Revision as of 13:50, 2 November 2012 by P12bot (Talk | contribs)

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

Parameters

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

Return value

The incremented iterator, that is reverse_iterator<Iterator>(x.current - n)

Example

See also

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