命名空间
变体
操作

std::ranges::zip_transform_view<F,Views...>::iterator<Const>::operator++,--,+=,-=

来自 cppreference.cn
 
 
范围库
范围适配器
 
 
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 起)

递增或递减 iterator

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;

目录

[edit] 参数

n - 相对于当前位置的位置

[edit] 返回值

1,4,6,7) *this
2) (无)
3,5) 在更改之前制作的 *this 的副本

[edit] 示例

[edit] 参见