On this page
std::basic_const_iterator<Iter>::operator++,--,+=,-=
|
(1) | (since C++23) |
|
(2) | (since C++23) |
|
(3) | (since C++23) |
|
(4) | (since C++23) |
|
(5) | (since C++23) |
|
(6) | (since C++23) |
|
(7) | (since C++23) |
Increments or decrements the iterator, by applying the corresponding operation on the underlying iterator.
1-3) Increments by one.
4,5) Decrements by one.
6,7) Advances the iterator by
n
or -n
positions respectively.
Return value
1,4,6,7)
*this
3,5) A copy of
*this
that was made before the change
2) (none)
Example
See also
(C++11)
|
advances or decrements the iterator (public member function of std::move_iterator<Iter> ) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/iterator/basic_const_iterator/operator_arith