std::ranges::zip_view<Views...>::iterator<Const>::operator++,--,+=,-=
constexpr /*iterator*/& operator++(); | (1) | (начиная с C++23) |
constexpr void operator++( int ); | (2) | (начиная с C++23) |
constexpr /*iterator*/ operator++( int )
requires /*all-forward*/<Const, Views...>;
| (3) | (начиная с C++23) |
constexpr /*iterator*/& operator--()
requires /*all-bidirectional*/<Const, Views...>;
| (4) | (начиная с C++23) |
constexpr /*iterator*/ operator--( int )
requires /*all-bidirectional*/<Const, Views...>;
| (5) | (начиная с C++23) |
constexpr /*iterator*/& operator+=( difference_type n )
requires /*all-random-access*/<Const, Views...>;
| (6) | (начиная с C++23) |
constexpr /*iterator*/& operator-=( difference_type n )
requires /*all-random-access*/<Const, Views...>;
| (7) | (начиная с C++23) |
Увеличивает или уменьшает каждый из базовых итераторов is_... в базовом объекте, подобном кортежу current_.
1) Эквивалентно
/*tuple-for-each*/([](auto& i) { ++i; }, current_); return *this;
2) Эквивалентно
++*this;
3) Эквивалентно
auto tmp = *this; ++*this; return tmp;
4) Эквивалентно
/*tuple-for-each*/([](auto& i) { --i; }, current_); return *this;
5) Эквивалентно
auto tmp = *this; --*this; return tmp;
6) Эквивалентно
/*tuple-for-each*/([&]<class I>(I& i) { i += iter_difference_t<I>(x); }, current_); return *this;
7) Эквивалентно
/*tuple-for-each*/([&]<class I>(I& i) { i -= iter_difference_t<I>(x); }, current_); return *this;
Параметры
| n | - | позиция относительно текущего местоположения |
Возвращаемое значение
1,4,6,7)
*this
2) (отсутствует)
3,5) копия
*this, созданная до измененияПример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/ranges/zip_view/iterator/operator_arith