operator-(ranges::slide_view::sentinel)
From cppreference.com
< cpp | ranges | slide view | sentinel
| friend constexpr ranges::range_difference_t<V> operator-( const /*iterator*/<false>& x, const /*sentinel*/& y ) |
(1) | (C++23から) |
| friend constexpr ranges::range_difference_t<V> operator-( const /*sentinel*/& y, const /*iterator*/<false>& x ) |
(2) | (C++23から) |
x の基底となるイテレータと y の基底となるセンチネルとの距離を計算します。
x の基底となるイテレータを last_ele_ とし、y の基底となるセンチネルを end_ とします。
1) 次と同等です: return x.last_ele_ - y.end_;.
2) 次と同等です: return y.end_ - x.last_ele_;.
これらの関数は、通常の非修飾または修飾ルックアップからは見えず、slide_view::sentinel が引数の関連クラスである場合にのみ、引数依存探索によって見つけることができます。
[編集] パラメータ
| x | - | an イテレータ |
| y | - | a センチネル |
[編集] 戻り値
イテレータとセンチネルとの距離。
[編集] 例
| このセクションは未完成です 理由: 例がありません |