std::ranges::split_view<V,Pattern>::sentinel
From cppreference.com
< cpp | ranges | split view
class /*sentinel*/; |
(C++20以降) (説明用*) |
|
基になる view の型 V が common_range をモデル化していない場合の split_view::end の戻り値の型。
目次 |
[編集] データメンバ
| メンバ | 説明 |
ranges::sentinel_t<V> end_ (private) |
基になる view のセンチネル(説明用のメンバオブジェクト*) |
[編集] メンバ関数
| (コンストラクタ) (C++20) |
センチネルを構築します (public member function) |
std::ranges::split_view::sentinel::sentinel
| /*sentinel*/() = default; |
(1) | (C++20以降) |
| constexpr explicit /*sentinel*/( ranges::split_view& parent ); |
(2) | (C++20以降) |
[編集] 非メンバ関数
| operator== (C++20) |
基底イテレータと基底センチネルを比較する (関数) |
operator==(std::ranges::split_view::iterator, std::ranges::split_view::sentinel)
| friend constexpr bool operator==( const /*iterator*/& x, const /*sentinel*/& y ); |
(C++20以降) | |
return x.cur_ == y.end_ and !x.trailing_empty_; に相当します。
!= 演算子は operator== から合成される。
この関数は、通常の 非修飾 または 修飾 ルックアップからは見えず、std::ranges::split_view::sentinel が引数に関連付けられたクラスである場合にのみ 引数依存の名前探索 によって見つけることができます。