Namespaces
Variants

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

From cppreference.net
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_ 表示底层哨位迭代器。

示例