std::reverse_iterator::operator++,+=,+
From cppreference.com
< cpp | iterator | reverse iterator
reference& operator++(); |
(1) | |
reference operator++(int); |
(2) | |
reverse_iterator operator+ (difference_type n) const; |
(3) | |
reverse_iterator& operator+=(difference_type n); |
(4) | |
Increments the location of the Iterator. That effectively decrements the base iterator.
1) pre-increment by 1
2) post-increment by 1
3) create an by n incremented reverse_iterator
4) increment by n
[edit] Return value
1) *this
2) copy of *this that was made before the change
3) reverse_iterator(current-n)
4) *this
[edit] Example
This section is incomplete |
[edit] See also
decrements the iterator (public member function) | |
advances a reverse_iterator (function template) |