Merge Ruby Stuff
[gem5.git] / src / base / hashmap.hh
index f8d7997801cf813042c4a59bee0c77d717fc007a..ff2aa151fd6eeed7e39d206c96970fd5e21cba28 100644 (file)
@@ -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;
+        }
+    };
+
+
+
 }