Namespaces
Variants

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

来自 zh.cppreference.net
 
 
范围库
范围适配器
 
 
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_ 表示底层哨位迭代器。

示例