std::ranges::zip_transform_view<F,Views...>::iterator<Const>::operator++,--,+=,-=
來自 cppreference.com
< cpp | ranges | zip transform view | iterator
constexpr /*迭代器*/& 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 的一個副本
[編輯] 示例
本節不完整 原因:無示例 |