名稱空間
變體
操作

operator==(ranges::join_with_view::iterator, ranges::join_with_view::sentinel)

來自 cppreference.com
 
 
範圍庫 (Ranges library)
範圍介面卡 (Range adaptors)
 
 
friend constexpr bool operator==( const /*iterator*/<Const>& x, const /*sentinel*/& y );
(C++23 起)

比較 x 的底層迭代器與 y 的底層哨兵。如果儲存在 x 中的底層外部迭代器是末端迭代器,則比較返回 true。

此函式對普通的非限定查詢限定查詢不可見,只能透過引數依賴查詢找到,當 join_with_view::sentinel<Const> 是引數的關聯類時。

!= 運算子由 operator== 合成

[編輯] 引數

x - 要比較的迭代器
y - 要比較的哨兵

[編輯] 返回值

x.outer_it_ == y.end_,其中 outer_it_ 表示底層外部迭代器,end_ 表示底層哨兵。

[編輯] 示例