top | up | prev | next

FunctionTemplateKeyHash Struct

Definition at line 28 of FunctionTemplateRepository.hpp

Member Functions

size_t operator()(const FunctionTemplateKey& key) const

Member Function Details

operator() Member Function

size_t cmajor::binder::FunctionTemplateKeyHash::operator()(const FunctionTemplateKey & key) const

Definition at line 30 of FunctionTemplateRepository.hpp :
31 {
32     size_t x = std::hash<FunctionSymbol*>()(key.functionTemplate);
33     int n = key.templateArgumentTypes.size();
34     for (int i = 0; i < n; ++i)
35     {
36         x = x ^ std::hash<TypeSymbol*>()(key.templateArgumentTypes[i]);
37     }
38     return x;
39 }



top | up | prev | next