Erase elements of C for which P is true.
Declared in <llvm/ADT/STLExtras.h>
template<
typename Container,
typename UnaryPredicate>
void
erase_if(
Container& C,
UnaryPredicate P);
Equivalent to C.erase(remove_if(C, pred), C.end()). Works for any container whose erase method accepts two iterators.
| Name | Description |
|---|---|
| C | Container to modify. |
| P | Unary predicate selecting elements to erase. |