class /*sentinel*/; | (since C++20) |
The return type of filter_view::end when the underlying view type (V) does not model common_range.
The name sentinel is for exposition purposes only.
Typical implementations of sentinel hold only one non-static data member: the sentinel of the underlying view (shown here as end_ for exposition only).
|
(C++20) | constructs a sentinel (public member function) |
|
(C++20) | returns the underlying sentinel (public member function) |
/*sentinel*/() = default; | (1) | (since C++20) |
constexpr explicit /*sentinel*/( filter_view& parent ); | (2) | (since C++20) |
constexpr ranges::sentinel_t<V> base() const; | (since C++20) |
Equivalent to return end_;.
|
(C++20) | compares the underlying iterator and the underlying sentinel (function) |
friend constexpr bool operator==( const /*iterator*/& x,
const /*sentinel*/& y );
| (since C++20) |
Equivalent to return x.current_ == y.end_;, where current_ is the underlying iterator wrapped in filter_view::iterator.
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::filter_view::sentinel is an associated class of the arguments.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/filter_view/sentinel