Namespaces
Variants

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

From cppreference.net
Ranges library
Range adaptors
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 副本

示例