命名空间
变体
操作

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

来自 cppreference.cn
 
 
范围库 (Ranges library)
范围适配器 (Range adaptors)
 
 
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 - 要比较的迭代器
y - 要比较的哨兵

[编辑] 返回值

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

[编辑] 示例