struct FoldingSetTrait

Declaration

template <typename T>
struct FoldingSetTrait { /* full declaration omitted */ };

Description

FoldingSetTrait - This trait class is used to define behavior of how to "profile" (in the FoldingSet parlance) an object of a given type. The default behavior is to invoke a 'Profile' method on an object, but through template specialization the behavior can be tailored for specific types. Combined with the FoldingSetNodeWrapper class, one can add objects to FoldingSets that were not originally designed to have that behavior.

Declared at: llvm/include/llvm/ADT/FoldingSet.h:249

Templates

T