std::ranges::split_view<V,Pattern>::end
From cppreference.com
< cpp | ranges | split view
| constexpr auto end() const; |
(C++20以降) | |
結果のサブレンジの末尾を表すイテレータまたはセンチネルを返します。これは次と同等です。
constexpr auto end()
{
if constexpr (ranges::common_range<V>)
return iterator{*this, ranges::end(base_), {}};
else
return sentinel{*this};
}
[編集] 戻り値
[編集] 例
このコードを実行
#include <cassert> #include <ranges> #include <string_view> int main() { constexpr std::string_view keywords{"bitand bitor bool break"}; std::ranges::split_view kw{keywords, ' '}; assert(4 == std::ranges::distance(kw.begin(), kw.end())); }
[編集] 関連項目
| 先頭へのイテレータを返す (public メンバ関数) | |
| 終端へのイテレータまたはセンチネルを返す ( std::ranges::lazy_split_view<V,Pattern> の public メンバ関数) | |
| (C++20) |
rangeの終端を示す番兵を返す (カスタマイゼーションポイントオブジェクト) |