diff options
Diffstat (limited to 'src/base/hashmap.hh')
-rw-r--r-- | src/base/hashmap.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/hashmap.hh b/src/base/hashmap.hh index f8d799780..ff2aa151f 100644 --- a/src/base/hashmap.hh +++ b/src/base/hashmap.hh @@ -81,6 +81,16 @@ namespace __hash_namespace { return(__stl_hash_string(s.c_str())); } }; + + template <> + struct hash<std::pair<std::string, uint64_t> > { + size_t operator() (std::pair<std::string, uint64_t> r) const { + return (__stl_hash_string(r.first.c_str())) ^ r.second; + } + }; + + + } |