14#ifndef RANGES_V3_ACTION_ADJACENT_REMOVE_IF_HPP
15#define RANGES_V3_ACTION_ADJACENT_REMOVE_IF_HPP
27#include <range/v3/utility/static_const.hpp>
29#include <range/v3/detail/prologue.hpp>
39 template(
typename Pred,
typename Proj =
identity)(
41 constexpr auto operator()(Pred pred, Proj proj = {})
const
43 return make_action_closure(
47 template(
typename Rng,
typename Pred,
typename Proj =
identity)(
52 Rng operator()(Rng && rng, Pred pred, Proj proj = {})
const
54 auto i = adjacent_remove_if(rng, std::move(pred), std::move(proj));
55 erase(rng, std::move(i), end(rng));
56 return static_cast<Rng &&
>(rng);
66#include <range/v3/detail/epilogue.hpp>
The erasable_range concept.
The forward_range concept.
The indirect_relation 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: adjacent_remove_if.hpp:38
Definition: identity.hpp:25