Namespaces
Variants

operator==,<,>,<=,>=,<=> (ranges::adjacent_transform_view:: iterator )

From cppreference.net
Ranges library
Range adaptors
friend constexpr bool operator == ( const /*iterator*/ & x, const /*iterator*/ & y ) ;
(1) (C++23以降)
friend constexpr bool operator < ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(2) (C++23以降)
friend constexpr bool operator > ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(3) (C++23以降)
friend constexpr bool operator <= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(4) (C++23以降)
friend constexpr bool operator >= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(5) (C++23以降)
friend constexpr auto operator <=> ( const /*iterator*/ & x, const /*iterator*/ & y )

requires ranges:: random_access_range < Base > かつ

std:: three_way_comparable < ranges:: iterator_t < Base >> ;
(6) (C++23以降)

基となるイテレータを比較します: inner_ .

1) 次と同等: return x. inner_ == y. inner_ ; .
2) 次と同等: return x. inner_ < y. inner_ ; .
3) 次と同等: return x. inner_ > y. inner_ ; .
4) 次と同等: return x. inner_ <= y. inner_ ;
5) 次と同等: return x. inner_ >= y. inner_ ; .
6) 次と等価: return x. inner_ <=> y. inner_ ;

これらの関数は通常の unqualified lookup または qualified lookup では可視化されず、 argument-dependent lookup によってのみ発見可能であり、それは std::ranges::adjacent_transform_view:: iterator <Const> が引数の関連クラスである場合に限られます。

!= 演算子は synthesized され、 operator== から生成されます。

目次

パラメータ

x, y - 比較するイテレータ

戻り値

比較結果。

関連項目

(C++23)
adjacent_transform_view::begin から返されるイテレータとセンチネルを比較する
(関数)