std::ranges::stride_view<V>:: end
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
| Member functions | ||||
|
stride_view::end
|
||||
|
(C++26)
|
||||
| Deduction guides | ||||
| Iterator | ||||
| Member functions | ||||
| Non-member functions | ||||
|
constexpr
auto
end
(
)
requires
(
!
/*simple-view*/
<
V
>
)
;
|
(1) | (C++23以降) |
|
constexpr
auto
end
(
)
const
requires
ranges::
range
<
const
V
>
|
(2) | (C++23以降) |
iterator
または
sentinel
を返します。これは
stride_view
の終端を表します。
同等の機能:
if constexpr (ranges::common_range<Base> && ranges::sized_range<Base> && ranges::forward_range<Base>) { auto missing = (stride_ - ranges::distance(base_) % stride_) % stride_; return iterator<Const>(this, ranges::end(base_), missing); } else if constexpr (ranges::common_range<Base> && !ranges::bidirectional_range<Base>) { return iterator<Const>(this, ranges::end(base_)); } else { return std::default_sentinel; }
目次 |
パラメータ
(なし)
戻り値
基になるビュー
V
が
common_range
をモデル化する場合、最後の要素の次を指す
イテレータ
。それ以外の場合、終端イテレータと等価比較される
std::default_sentinel
。
注記
stride_view
<
V
>
は、基盤となるビュー
V
が
common_range
をモデル化する場合に、常に
common_range
をモデル化します。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
先頭を指すイテレータを返す
(公開メンバ関数) |
|
|
(C++20)
|
範囲の終端を示すセンチネルを返す
(カスタマイゼーションポイントオブジェクト) |