class /*sentinel*/; // exposition only
(since C++20)

The return type of split_view::end when the underlying view type (V) does not models common_range.

The name sentinel is for exposition purposes only.

Data members

Typical implementations of sentinel hold only one non-static data member: an object of type ranges::sentinel_t<V> that is the sentinel of the underlying view (shown here as end_ for exposition only).

Member functions

constructs a sentinel
(public member function)


/*sentinel*/() = default;
(1) (since C++20)
constexpr explicit /*sentinel*/( ranges::split_view& parent );
(2) (since C++20)
1) Value-initializes end_ via its default member initializer (= ranges::sentinel_t<V>()).
2) Initializes end_ with ranges​::​end(parent.base_).

Non-member functions

compares the underlying iterator and the underlying sentinel

operator==(std::ranges::split_view::iterator, std::ranges::split_view::sentinel)

friend constexpr bool operator==( const /*iterator*/& x,
                                  const /*sentinel*/& y );
(since C++20)

Equivalent to return x.cur_ == y.end_ && !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.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.