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