std::ranges::take_while_view<V,Pred>::take_while_view
From cppreference.com
< cpp | ranges | take while view
take_while_view() = default; |
(1) | (since C++20) |
constexpr take_while_view( V base, Pred pred ); |
(2) | (since C++20) |
Constructs a take_while_view
.
1) Default constructor. Value-initializes the underlying view and the predicate. If
Pred
is not default_initializable, the take_while_view
does not hold a predicate, and subsequent use of the predicate (e.g. call of end
) is undefined behavior.2) Move constructs the underlying view from
base
and the predicate from pred
.Parameters
base | - | underlying view |
fun | - | predicate |
Example
This section is incomplete Reason: no example |