/*sentinel*/() = default; | (1) | (since C++20) |
constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end, const Pred* pred ); | (2) | (since C++20) |
constexpr /*sentinel*/( /*sentinel*/<!Const> s ) requires Const && std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<Base>>; | (3) | (since C++20) |
Constructs a sentinel.
end
and the pointer to predicate with pred
./*sentinel*/<false>
to /*sentinel*/<true>
. Copy constructs corresponding members.end | - | a sentinel representing the end of (possibly const-qualified) V |
pred | - | a pointer to predicate |
i | - | a /*sentinel*/<false> |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/take_while_view/sentinel/sentinel