ΒΆtemplate <typename Container,
typename UnaryPredicate>
void erase_if(Container& C, UnaryPredicate P)
template <typename Container,
typename UnaryPredicate>
void erase_if(Container& C, UnaryPredicate P)
Description
Provide a container algorithm similar to C++ Library Fundamentals v2's `erase_if` which is equivalent to: C.erase(remove_if(C, pred), C.end()); This version works for any container with an erase method call accepting two iterators.
Declared at: llvm/include/llvm/ADT/STLExtras.h:1340
Templates
- Container
- UnaryPredicate
Parameters
- Container& C
- UnaryPredicate P