Namespaces
Variants

operator== (ranges::chunk_by_view:: iterator )

From cppreference.net
Ranges library
Range adaptors
friend constexpr bool operator == ( const /*iterator*/ & x, const /*iterator*/ & y ) ;
(1) (自 C++23 起)
friend constexpr bool operator == ( const /*iterator*/ & x, std:: default_sentinel_t ) ;
(2) (自 C++23 起)

比较底层迭代器。

1) 等价于 return x. current_ == y. current_ ;
2) 等价于 return x. current_ == x. next_ ;

此函数对普通的 非限定查找 限定查找 不可见,仅当 std::ranges::chunk_by_view:: iterator 作为参数的关联类时,通过 实参依赖查找 才能找到该函数。

!= 运算符由 operator== 合成 而来。

参数

x, y - 待比较的 迭代器

返回值

比较的结果。

示例