operator-(ranges::adjacent_view::sentinel)
From cppreference.com
< cpp | ranges | adjacent view | sentinel
| template< bool OtherConst > requires std::sized_sentinel_for<ranges::sentinel_t<Base>, |
(1) | (C++23から) |
| template< bool OtherConst > requires std::sized_sentinel_for<ranges::sentinel_t<Base>, |
(2) | (C++23から) |
x の基底イテレータと y の基底センチネルとの間の距離を計算します。
current_ はxの基底となるイテレータ配列を表し、end_ はyの基底となるセンチネルを表します。
1) 次に相当します: return x.current_.back() - y.end_;
2) 次に相当します: return y.end_ - x.current_.back();
これらの関数テンプレートは、通常の非修飾または修飾ルックアップからは見えず、adjacent_view::sentinel が引数に関連付けられたクラスである場合にのみ、引数依存名前探索によって見つけることができます。
目次 |
[編集] パラメータ
| x | - | イテレータ |
| y | - | センチネル |
[編集] 戻り値
x と y の間の距離。
[編集] 例
| このセクションは未完成です 理由: 例がありません |