Namespaces
Variants

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

From cppreference.net
Ranges library
Range adaptors
friend constexpr bool operator == ( const /*iterator*/ & x, std:: default_sentinel_t ) ;
(1) (C++23以降)
friend constexpr bool operator == ( const /*iterator*/ & x, const /*iterator*/ & y )
requires std:: equality_comparable < ranges:: iterator_t < 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 bool operator >= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(6) (C++23以降)
friend constexpr auto operator <=> ( const /*iterator*/ & x, const /*iterator*/ & y )

requires ranges:: random_access_range < Base > and

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

基になるイテレータ/センチネルを比較します。

current_ を基底イテレータ、 end_ を基底センチネルとします。

1) 次と等価: return x. current_ == x. end_ ;
2) 次と同等: return x. current_ == y. current_ ; .
3) 次と同等 return x. current_ < y. current_ ; .
4) 次と同等: return y < x ;
5) 次と同等 return ! ( y < x ) ;
6) 次と同等: return ! ( x < y ) ;
7) 次と同等: return x. current_ <=> y. current_ ;

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

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

パラメータ

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

戻り値

比較結果