This in fact advances by that same amount of element positions the base iterator kept internally.
Parameters
- n
- Number of elements to step over backwards.
difference_type is a member type defined as an alias of the base iterator's own difference type (generally, a integral type).
Return value
The reverse iterator itself (*this).Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Output:
rev_iterator now points to: 3 |
See also
| reverse_iterator::operator+= | Advance iterator (public member function) |
| reverse_iterator::operator-- | Decrease iterator position (public member function) |
| reverse_iterator::operator- | Subtraction operator (public member function) |
