命名空间
变体
操作

operator==(ranges::zip_transform_view::sentinel)

来自 cppreference.cn
 
 
范围库
范围适配器
 
 
template< bool OtherConst >

    requires std::sentinel_for</*zentinel*/<Const>, /*ziperator*/<OtherConst>>
friend constexpr bool operator==( const /*iterator*/<OtherConst>& x,

                                  const /*sentinel*/& y );
(自 C++23 起)

x 的底层迭代器与 y 的底层哨位进行比较。

此函数模板对于普通的非限定限定查找不可见,并且只能通过实参依赖查找zip_transform_view::sentinel 是参数的关联类时找到。

!= 运算符是从 operator== 合成 的。

[编辑] 参数

x - 要比较的 iterator
y - 要比较的 sentinel

[编辑] 返回值

x.inner_ == y.inner_,其中 inner_ 分别表示底层迭代器或哨位。

[编辑] 示例