operator==,<,>,<=,>=,<=>(ranges::adjacent_transform_view::iterator)
< cpp | ranges | adjacent transform 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> and |
(6) | (C++23 起) |
比较底层迭代器:inner_。
1) 等价于 return x.inner_ == y.inner_;。
2) 等价于 return x.inner_ < y.inner_;。
3) 等价于 return x.inner_ > y.inner_;。
4) 等价于 return x.inner_ <= y.inner_;。
5) 等价于 return x.inner_ >= y.inner_;。
6) 等价于 return x.inner_ <=> y.inner_;。
这些函数对常规的无限定或有限定查找不可见,而只能在 std::ranges::adjacent_transform_view::iterator<Const> 为实参的关联类时由实参依赖查找找到。
!= 运算符从 operator== 运算符合成。
参数
| x, y | - | 要比较的迭代器 |
返回值
比较的结果。
示例
| 本节未完成 原因:暂无示例 |
参阅
|
(C++23)
|
比较哨位与 adjacent_transform_view::begin 返回的迭代器 (函数) |