operator==(ranges::enumerate_view::iterator, ranges::enumerate_view::sentinel )
来自cppreference.com
< cpp | ranges | enumerate view | sentinel
| friend constexpr bool operator==( const /*iterator*/<Const>& x, const /*sentinel*/& y ); |
(C++23 起) | |
比较 x 的底层迭代器和 y 的底层哨位。
令 current_ 表示 x 的底层迭代器,令 end_ 表示 y 的底层哨位。则等价于:
return x.current_ == y.end_;。
此函数对常规的无限定或有限定查找不可见,而只能在 enumerate_view::sentinel<Const> 为实参的关联类时由实参依赖查找找到。
!= 运算符从 operator== 运算符合成。
参数
| x | - | 待比较的迭代器 |
| y | - | 待比较的哨位 |
返回值
比较的结果。
示例
| 本节未完成 原因:暂无示例 |