13#ifndef RANGES_V3_ALGORITHM_REMOVE_IF_HPP
14#define RANGES_V3_ALGORITHM_REMOVE_IF_HPP
30#include <range/v3/utility/static_const.hpp>
32#include <range/v3/detail/prologue.hpp>
38 RANGES_FUNC_BEGIN(remove_if)
41 template(
typename I,
typename S,
typename C,
typename P =
identity)(
44 constexpr I RANGES_FUNC(remove_if)(I
first, S last, C pred, P proj = P{})
46 first = find_if(std::move(first), last, ranges::ref(pred), ranges::ref(proj));
49 for(I i = next(first); i != last; ++i)
53 *
first = iter_move(i);
62 template(
typename Rng,
typename C,
typename P =
identity)(
65 constexpr borrowed_iterator_t<Rng> RANGES_FUNC(remove_if)(Rng && rng, C pred, P proj = P{})
67 return (*
this)(begin(rng), end(rng), std::move(pred), std::move(proj));
70 RANGES_FUNC_END(remove_if)
74 using ranges::remove_if;
79#include <range/v3/detail/epilogue.hpp>
The forward_range concept.
The indirect_unary_predicate concept.
The sentinel_for concept.
decltype(begin(declval(Rng &))) iterator_t
Definition access.hpp:698
typename Fn::template invoke< Args... > invoke
Evaluate the invocable Fn with the arguments Args.
Definition meta.hpp:541
front< Pair > first
Retrieve the first element of the pair Pair.
Definition meta.hpp:2251
Definition adjacent_find.hpp:67
Definition identity.hpp:25