operator==,<,>,<=,>=(ranges::chunk_view::iterator)
From cppreference.com
< cpp | ranges | chunk view | 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> && |
(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_;。
これらの関数は、通常の 修飾なし または 修飾あり の名前探索からは見えず、std::ranges::chunk_view::iterator<Const> が引数に関連付けられたクラスである場合にのみ、引数依存名前探索 によって見つけることができます。
!= 演算子は operator== から合成される。
目次 |
[編集] パラメータ
| x, y | - | 比較する イテレータ |
[編集] 戻り値
比較結果。
[編集] 例
| このセクションは未完成です 理由: 例がありません |