llvm::remove_if

Remove elements of Range for which P is true.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

template<
    typename R,
    typename UnaryPredicate>
auto
remove_if(
    R&& Range,
    UnaryPredicate P);

Return Value

Iterator past the last element not removed.

Parameters

NameDescription
RangeRange to compact.
PUnary predicate selecting elements to remove.