13 #ifndef RANGES_V3_ACTION_REMOVE_HPP
14 #define RANGES_V3_ACTION_REMOVE_HPP
26 #include <range/v3/utility/static_const.hpp>
28 #include <range/v3/detail/prologue.hpp>
38 template(
typename V,
typename P)(
40 constexpr
auto operator()(V && value, P proj)
const
42 return make_action_closure(
47 constexpr
auto operator()(V && value)
const
49 return make_action_closure(
53 template(
typename Rng,
typename V,
typename P =
identity)(
58 Rng operator()(Rng && rng, V
const & value, P proj = {})
const
60 auto it = ranges::remove(rng, value, std::move(proj));
61 ranges::erase(rng, it, ranges::end(rng));
62 return static_cast<Rng &&
>(rng);
72 #include <range/v3/detail/epilogue.hpp>
CPP_concept permutable
\concept permutable
Definition: concepts.hpp:840
CPP_concept indirect_relation
\concept indirect_relation
Definition: concepts.hpp:670
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: remove.hpp:37
Definition: comparisons.hpp:28
Definition: identity.hpp:25