std::reverse_iterator::operator++,+,+=,--,-,-=
From cppreference.com
< cpp | iterator | reverse iterator
reverse_iterator& operator++();
|
(1) | |
reverse_iterator& operator--();
|
(2) | |
reverse_iterator operator++( int );
|
(3) | |
reverse_iterator operator--( int );
|
(4) | |
reverse_iterator operator+( difference_type n ) const;
|
(5) | |
reverse_iterator operator-( difference_type n ) const;
|
(6) | |
reverse_iterator& operator+=( difference_type n ) const;
|
(7) | |
reverse_iterator& operator-=( difference_type n ) const;
|
(8) | |
Increments or decrements the iterator. Inverse operations are applied to the underlying operator because of the reverse order.
1-2) Pre-increments or pre-decrements by one respectively.
3-4) Post-increments or post-decrements by one respectively.
5-6) Returns an iterator which is advanced by
n
or -n
positions respectively.
7-8) Advances the iterator by
n
or -n
positions respectively.[edit] Return value
1) *this
2) a copy of *this that was made before the change
3) reverse_iterator(base()-n) or reverse_iterator(base()+n) respectively.
4) *this
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
advances the iterator (function template) |