13#ifndef RANGES_V3_ACTION_UNSTABLE_REMOVE_IF_HPP
14#define RANGES_V3_ACTION_UNSTABLE_REMOVE_IF_HPP
31#include <range/v3/detail/prologue.hpp>
41 template(
typename C,
typename P =
identity)(
43 constexpr auto operator()(C pred, P proj = P{})
const
45 return make_action_closure(
49 template(
typename Rng,
typename C,
typename P =
identity)(
54 Rng operator()(Rng && rng, C pred, P proj = P{})
const
56 auto it = ranges::unstable_remove_if(ranges::begin(rng),
60 ranges::erase(rng, it, ranges::end(rng));
61 return static_cast<Rng &&
>(rng);
71#include <range/v3/detail/epilogue.hpp>
The bidirectional_range concept.
The common_range concept.
The erasable_range concept.
The indirect_unary_predicate concept.
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
defer< bind_back, Fn, Ts... > bind_back
Definition: meta.hpp:994
Definition: unstable_remove_if.hpp:40
Definition: identity.hpp:25