std::ranges::zip_view<Views...>::iterator<Const>::operator++,--,+=,-=
来自cppreference.com
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 起) |
增加或减少底层元组式对象 current_
中的每个底层迭代器 is_...
。
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 在改动前做出的副本
示例
本节未完成 原因:暂无示例 |