| constexpr /*iterator*/& operator++(); |
(1) | (since C++26) |
| constexpr void operator++( int ); |
(2) | (since C++26) |
| constexpr /*iterator*/ operator++( int ) requires /*all-forward*/<Const, Views...>; |
(3) | (since C++26) |
| constexpr /*iterator*/& operator--() requires /*concat-is-bidirectional*/<Const, Views...>; |
(4) | (since C++26) |
| constexpr /*iterator*/ operator--( int ) requires /*concat-is-bidirectional*/<Const, Views...>; |
(5) | (since C++26) |
| constexpr /*iterator*/& operator+=( difference_type n ) requires /*concat-is-random-access*/<Const, Views...>; |
(6) | (since C++26) |
| constexpr /*iterator*/& operator-=( difference_type n ) requires /*concat-is-random-access*/<Const, Views...>; |
(7) | (since C++26) |
Increments or decrements the iterator.
| Overload | Equivalent to (let I be )
|
|---|---|
| (1) | ++
|
| (2) | ++*this;
|
| (3) | auto tmp = *this; ++*this; return tmp;
|
| (4) |
|
| (5) | auto tmp = *this; --*this; return tmp;
|
| (6) |
auto offset =
|
| (7) | *this += -n; return *this;
|
If is it_ .valueless_by_exception()true, the behavior is undefined.
Parameters
| n | - | position relative to current location |
Return value
As described above.
Example
This section is incomplete
Reason: no example
Reason: no example
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.