Namespaces
Variants

operator- (ranges::zip_transform_view:: sentinel )

From cppreference.net
Ranges library
Range adaptors
template < bool OtherConst >

requires std:: sized_sentinel_for < /*zentinel*/ < Const > , /*ziperator*/ < OtherConst >>
friend constexpr ranges:: range_difference_t < /*maybe-const*/ < OtherConst, /*InnerView*/ >>

operator - ( const /*iterator*/ < OtherConst > & x, const /*sentinel*/ & y ) ;
(1) (C++23 起)
template < bool OtherConst >

requires std:: sized_sentinel_for < /*zentinel*/ < Const > , /*ziperator*/ < OtherConst >>
friend constexpr ranges:: range_difference_t < /*maybe-const*/ < OtherConst, /*InnerView*/ >>

operator - ( const /*sentinel*/ & y, const /*iterator*/ < OtherConst > & x ) ;
(2) (C++23 起)

计算 x 底层迭代器与 y 底层哨兵之间的距离。

这些函数模板对普通的 非限定查找 限定查找 不可见,仅当 zip_transform_view:: sentinel 作为参数的关联类时,才能通过 实参依赖查找 被发现。

参数

x - 一个 iterator
y - 一个 sentinel

返回值

inner_ 分别表示底层迭代器或哨位。

1) x. inner_ - y. inner_
2) y. inner_ - x. inner_