std::basic_const_iterator<Iter>::operator++,--,+=,-=
From cppreference.com
< cpp | iterator | basic const iterator
C++
Iterator library
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::basic_const_iterator
| Member functions | ||||
basic_const_iterator::operator++basic_const_iterator::operator+=basic_const_iterator::operator--basic_const_iterator::operator-= | ||||
| Non-member functions | ||||
(C++23)(C++23)(C++23)(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Helper classes | ||||
| constexpr basic_const_iterator& operator++(); |
(1) | (since C++23) |
| constexpr void operator++(int); |
(2) | (since C++23) |
| constexpr basic_const_iterator operator++(int) requires std::forward_iterator<Iter>; |
(3) | (since C++23) |
| constexpr basic_const_iterator& operator--() requires std::bidirectional_iterator<Iter>; |
(4) | (since C++23) |
| constexpr basic_const_iterator operator--(int) requires std::bidirectional_iterator<Iter>; |
(5) | (since C++23) |
| constexpr basic_const_iterator& operator+=( difference_type n ) requires std::random_access_iterator<Iter>; |
(6) | (since C++23) |
| constexpr basic_const_iterator& operator-=( difference_type n ) requires std::random_access_iterator<Iter>; |
(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.
[edit] Return value
1,4,6,7) *this
3,5) A copy of *this that was made before the change
2) (none)
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
advances or decrements the move_iterator (public member function of std::move_iterator<Iter>) [edit]
|