std::ranges::zip_transform_view<F,Views...>::iterator<Const>::operator++,--,+=,-=
来自cppreference.com
< cpp | ranges | zip transform view | iterator
constexpr /*iterator*/& operator++(); |
(1) | (C++23 起) |
constexpr void operator++( int ); |
(2) | (C++23 起) |
constexpr /*iterator*/ operator++( int ) requires ranges::forward_range<Base>; |
(3) | (C++23 起) |
constexpr /*iterator*/& operator--() requires ranges::bidirectional_range<Base>; |
(4) | (C++23 起) |
constexpr /*iterator*/ operator--( int ) requires ranges::bidirectional_range<Base>; |
(5) | (C++23 起) |
constexpr /*iterator*/& operator+=( difference_type n ) requires ranges::random_access_range<Base>; |
(6) | (C++23 起) |
constexpr /*iterator*/& operator-=( difference_type n ) requires ranges::random_access_range<Base>; |
(7) | (C++23 起) |
增加或减少迭代器。
令 inner_
为底层迭代器,并令 Base
为仅用于阐释的成员类型。
等价于:
1) ++inner_; return *this;
2) ++*this;
3) auto tmp = *this; ++*this; return tmp;
4) --inner_; return *this;
5) auto tmp = *this; --*this; return tmp;
6) inner_ += n; return *this;
7) inner_ -= n; return *this;
参数
n | - | 相对于当前位置的位置 |
返回值
1,4,6,7) *this
2) (无)
3,5) *this 改动前做出的副本
示例
本节未完成 原因:暂无示例 |