operator==,<,>,<=,>=,<=> (ranges::slide_view:: iterator )
|
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
>
&&
|
(6) | (C++23以降) |
基になるイテレータを比較します。
current_
と
last_ele_
を、それぞれスライディングウィンドウの先頭と末尾を指す基盤となるイテレータとする。
-
return
x.
last_ele_
==
y.
last_ele_
;
、ただし
last_ele_が存在する場合。それ以外の場合、 - return x. current_ == y. current_ ; 。
これらの関数は通常の
unqualified lookup
または
qualified lookup
では可視化されず、
argument-dependent lookup
によってのみ発見され、その際
std::ranges::slide_view::
iterator
<Const>
が引数の関連クラスである場合に限ります。
!=
演算子は
synthesized
され、
operator==
から生成されます。
目次 |
パラメータ
| x, y | - | 比較するイテレータ |
戻り値
比較の結果。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(C++23)
|
slide_view::begin
から返されたイテレータとセンチネルを比較する
(関数) |