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