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