table of contents
| std::ranges::concat_view::iterator::operator++,--,+=,-=(3) | C++ Standard Libary | std::ranges::concat_view::iterator::operator++,--,+=,-=(3) |
NAME¶
std::ranges::concat_view::iterator::operator++,--,+=,-= - std::ranges::concat_view::iterator::operator++,--,+=,-=
Synopsis¶
constexpr /*iterator*/& operator++(); (1) (since C++26) constexpr void operator++( int ); (2) (since C++26) constexpr /*iterator*/ operator++( int ) (3) (since C++26) requires /*all-forward*/<Const, Views...>; constexpr /*iterator*/& operator--() (4) (since C++26) requires /*concat-is-bidirectional*/<Const, Views...>; constexpr /*iterator*/ operator--( int ) (5) (since C++26) requires /*concat-is-bidirectional*/<Const, Views...>; constexpr /*iterator*/& operator+=( difference_type n ) (6) (since C++26) requires /*concat-is-random-access*/<Const, Views...>; constexpr /*iterator*/& operator-=( difference_type n ) (7) (since C++26) requires /*concat-is-random-access*/<Const, Views...>;
Increments or decrements the iterator.
Overload Equivalent to
(let I be it_ .index())
(1) ++get-iter <I>();
satisfy <I>(); return *this;
(2) ++*this;
(3) auto tmp = *this; ++*this; return tmp;
(4) prev <I>(); return *this;
(5) auto tmp = *this; --*this; return tmp;
auto offset = get-iter <I>() -
get-begin <I>();
if (n > 0)
(6) advance-fwd <I>(offset, n);
else if (n < 0)
advance-bwd <I>(offset, -n);
return *this;
(7) *this += -n; return *this;
If it_ .valueless_by_exception() is 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
| 2026.11.10 | http://cppreference.com |