std::ranges::split_view<V,Pattern>::sentinel
From cppreference.com
< cpp | ranges | split view
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++26)(C++26)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
class /*sentinel*/;
(since C++20) (exposition only*)
The return type of split_view::end when the underlying view
type V
does not models common_range
.
Contents
[edit] Data members
Member
Description
ranges::sentinel_t <V>
(exposition-only member object*)
end_
(private)
the sentinel for the underlying view
(exposition-only member object*)
[edit] Member functions
(constructor)
(C++20)
(public member function)
std::ranges::split_view::sentinel::sentinel
/*sentinel*/() = default;
(1)
(since C++20)
constexpr explicit /*sentinel*/( ranges::split_view & parent );
(2)
(since C++20)
[edit] Non-member functions
operator==
(C++20)
(function)
operator==(std::ranges::split_view::iterator, std::ranges::split_view::sentinel)
friend constexpr bool operator==( const /*iterator*/& x,
const /*sentinel*/& y );
(since C++20)
const /*sentinel*/& y );
Equivalent to return x.cur_ == y.end_ and !x.trailing_empty_;.
The !=
operator is synthesized from operator==
.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::ranges::split_view::sentinel
is an associated class of the arguments.