Remove entries that match the given predicate.

Synopsis

Declared in <llvm/ADT/DenseMap.h>

template<typename Predicate>
bool
remove_if(Predicate Pred);

Description

Pred is invoked with a reference to each live bucket and must not access the map being modified. This is the safe replacement for erase‐while‐iterating.

Returns whether anything was removed. If so, all iterators and references into the map are invalidated.

Return Value

True if at least one entry was removed.

Parameters

Name

Description

Pred

Predicate over each live bucket; return true to erase it.

Created with MrDocs