|
Range primitives | |||||||
|
Range concepts | |||||||||||||||||||
|
Range factories | |||||||||
|
Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Helper items | |||||||||||||||||
|
class/*sentinel*/; | (since C++20) (exposition only*) | |
The return type offilter_view::end when the underlyingview
V
does not modelcommon_range
.
Contents |
Member | Definition |
V end_ (private) | the sentinel of the underlyingview (exposition-only member object*) |
constructs a sentinel (public member function) | |
returns the underlying sentinel (public member function) |
/*sentinel*/()=default; | (1) | (since C++20) |
constexprexplicit/*sentinel*/( filter_view& parent); | (2) | (since C++20) |
constexprranges::sentinel_t<V> base()const; | (since C++20) | |
Equivalent toreturn end_;.
(C++20) | compares the underlying iterator and the underlying sentinel (function) |
friendconstexprbool operator==(const/*iterator*/& x, const/*sentinel*/& y); | (since C++20) | |
Equivalent toreturn x.current_== y.end_;, wherecurrent_
is the underlying iterator wrapped infilter_view::iterator
.
The!=
operator issynthesized fromoperator==
.
This function is not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whenstd::ranges::filter_view::sentinel
is an associated class of the arguments.