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 | - | 一個要比較的哨兵 |
[編輯] 返回值
比較結果。
[編輯] 示例
本節不完整 原因:無示例 |