Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::actions::remove_if_fn Struct Reference

Synopsis of methods

constexpr remove_if_fn remove_if {}
 

Public Member Functions

template<typename C , typename P = identity>
constexpr auto operator() (C pred, P proj=P{}) const
 
template<typename Rng , typename C , typename P = identity>
Rng operator() (Rng &&rng, C pred, P proj=P{}) const
 

Member Function Documentation

◆ operator()() [1/2]

template<typename C , typename P = identity>
constexpr auto ranges::actions::remove_if_fn::operator() ( pred,
proj = P{} 
) const
constexpr
Precondition
requires (!range<C>)

◆ operator()() [2/2]

template<typename Rng , typename C , typename P = identity>
Rng ranges::actions::remove_if_fn::operator() ( Rng &&  rng,
pred,
proj = P{} 
) const
Precondition
requires forward_range<Rng> && erasable_range<Rng &, iterator_t<Rng>, iterator_t<Rng>> && permutable<iterator_t<Rng>> && indirect_unary_predicate<C, projected<iterator_t<Rng>, P>>