class PriorityWorklist::TestAndEraseFromMap
Declaration
template <typename UnaryPredicateT>
class PriorityWorklist::TestAndEraseFromMap { /* full declaration omitted */ };
Description
A wrapper predicate designed for use with std::remove_if. This predicate wraps a predicate suitable for use with std::remove_if to call M.erase(x) on each element which is slated for removal. This just allows the predicate to be move only which we can't do with lambdas today.
Declared at: llvm/include/llvm/ADT/PriorityWorklist.h:225
Templates
- UnaryPredicateT
Method Overview
- public TestAndEraseFromMap<UnaryPredicateT>(UnaryPredicateT P, MapT & M)
Methods
ΒΆTestAndEraseFromMap<UnaryPredicateT>(
UnaryPredicateT P,
MapT& M)
TestAndEraseFromMap<UnaryPredicateT>(
UnaryPredicateT P,
MapT& M)
Declared at: llvm/include/llvm/ADT/PriorityWorklist.h:230
Parameters
- UnaryPredicateT P
- MapT& M