template< class Iter > reverse_iterator<Iter> operator+( typename reverse_iterator<Iter>::difference_type n, const reverse_iterator<Iter>& it ); | (until C++17) | |
template< class Iter > constexpr reverse_iterator<Iter> operator+( typename reverse_iterator<Iter>::difference_type n, const reverse_iterator<Iter>& it ); | (since C++17) |
Returns the iterator it
incremented by n
.
n | - | the number of positions to increment the iterator |
it | - | the iterator adaptor to increment |
The incremented iterator, that is reverse_iterator<Iter>(x.current - n)
.
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/reverse_iterator/operator+