14 #ifndef RANGES_V3_ACTION_TAKE_WHILE_HPP
15 #define RANGES_V3_ACTION_TAKE_WHILE_HPP
25 #include <range/v3/utility/static_const.hpp>
27 #include <range/v3/detail/prologue.hpp>
37 template(
typename Fun)(
38 requires (!range<Fun>))
39 constexpr
auto operator()(Fun fun)
const
44 template(
typename Rng,
typename Fun)(
45 requires forward_range<Rng> AND
48 Rng operator()(Rng && rng, Fun fun)
const
50 ranges::actions::erase(
51 rng, find_if_not(begin(rng), end(rng), std::move(fun)), end(rng));
52 return static_cast<Rng &&
>(rng);
62 #include <range/v3/detail/epilogue.hpp>
CPP_concept indirect_unary_predicate
\concept indirect_unary_predicate
Definition: concepts.hpp:632
decltype(begin(declval(Rng &))) iterator_t
Definition: access.hpp:698
RANGES_INLINE_VARIABLE(detail::to_container_fn< detail::from_range< std::vector >>, to_vector) template< template< typename... > class ContT > auto to(RANGES_HIDDEN_DETAIL(detail
For initializing a container of the specified type with the elements of an Range.
Definition: conversion.hpp:399
CPP_concept erasable_range
\concept erasable_range
Definition: erase.hpp:76
defer< bind_back, Fn, Ts... > bind_back
Definition: meta.hpp:994
Definition: take_while.hpp:36