Index: base/trace_event/memory_allocator_dump_guid.h |
diff --git a/base/trace_event/memory_allocator_dump_guid.h b/base/trace_event/memory_allocator_dump_guid.h |
index b6472c66129bda37c95817984c796e6a6be1dfff..de3f561180f64708cfd1c4edb3a6fb990b00709d 100644 |
--- a/base/trace_event/memory_allocator_dump_guid.h |
+++ b/base/trace_event/memory_allocator_dump_guid.h |
@@ -48,4 +48,16 @@ class BASE_EXPORT MemoryAllocatorDumpGuid { |
} // namespace trace_event |
} // namespace base |
+namespace std { |
+ |
+template <> |
+struct BASE_EXPORT hash<base::trace_event::MemoryAllocatorDumpGuid> { |
+ size_t operator()( |
+ const base::trace_event::MemoryAllocatorDumpGuid& guid) const { |
+ return static_cast<size_t>(guid.ToUint64()); |
+ } |
+}; |
+ |
+} // namespace std |
+ |
#endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_GUID_H_ |