Namespaces
Variants

operator-(ranges::zip_transform_view::sentinel)

ja.cppreference.net より
 
 
Ranges ライブラリ
Range アダプタ
 
 
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 - an iterator
y - a sentinel

戻り値

inner_ がそれぞれ基盤となるイテレータまたはセンチネルを表すものとします。

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