Namespaces
Variants

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

From cppreference.net
Ranges library
Range adaptors
std::ranges::chunk_view
Member functions
Classes for input_range s
Deduction guides
outer-iterator
outer-iterator ::value_type
inner-iterator
friend constexpr bool operator == ( const /*iterator*/ & x, const /*iterator*/ & y ) ;
(1) (C++23以降)
friend constexpr bool operator == ( const /*iterator*/ & x, std:: default_sentinel_t ) ;
(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 > &&

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

基となるイテレータ(または基となるイテレータとデフォルトセンチネル (2) )を比較します。

current_ end_ を基となる データメンバ とする。

同等の機能:

1) return x. current_ == y. current_ ; .
2) return x. current_ == x. end_ ; .
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::chunk_view:: iterator <Const> が引数の関連クラスである場合に限られます。

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

目次

パラメータ

x, y - 比較対象の イテレータ

戻り値

比較の結果。

関連項目