Namespaces
Variants

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

From cppreference.net
Ranges library
Range adaptors
constexpr /*iterator*/ & operator ++ ( ) ;
(1) (depuis C++26)
constexpr void operator ++ ( int ) ;
(2) (depuis C++26)
constexpr /*iterator*/ operator ++ ( int )
requires /*all-forward*/ < Const, Views... > ;
(3) (depuis C++26)
constexpr /*iterator*/ & operator -- ( )
requires /*concat-is-bidirectional*/ < Const, Views... > ;
(4) (depuis C++26)
constexpr /*iterator*/ operator -- ( int )
requires /*concat-is-bidirectional*/ < Const, Views... > ;
(5) (depuis C++26)
constexpr /*iterator*/ & operator + = ( difference_type n )
requires /*concat-is-random-access*/ < Const, Views... > ;
(6) (depuis C++26)
constexpr /*iterator*/ & operator - = ( difference_type n )
requires /*concat-is-random-access*/ < Const, Views... > ;
(7) (depuis C++26)

Incrémente ou décrémente l' itérateur .

Surcharge Équivalent à
(soit I l'itérateur it_  . index ( ) )
(1) ++ get-iter  < I > ( ) ; satisfy  < I > ( ) ; return * this ;
(2) ++* this ;
(3) auto tmp = * this ; ++* this ; return tmp ;
(4) prev  < I > ( ) ; return * this ;
(5) auto tmp = * this ; --* this ; return tmp ;
(6)

auto offset = get-iter  < I > ( ) - get-begin  < I > ( ) ;
if ( n > 0 )
advance-fwd  < I > ( offset, n ) ;
else if ( n < 0 )
advance-bwd  < I > ( offset, - n ) ;
return * this ;

(7) * this + = - n ; return * this ;

Si it_  . valueless_by_exception ( ) est true , le comportement est indéfini.

Paramètres

n - position relative à l'emplacement actuel

Valeur de retour

Comme décrit ci-dessus.

Exemple