summaryrefslogtreecommitdiffstats
path: root/base/hash_tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/hash_tables.h')
-rw-r--r--base/hash_tables.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/hash_tables.h b/base/hash_tables.h
index c2dcde5..ad7d465 100644
--- a/base/hash_tables.h
+++ b/base/hash_tables.h
@@ -11,6 +11,12 @@
// base::hash_map<int> my_map;
// base::hash_set<int> my_set;
//
+// NOTE: It is an explicit non-goal of this class to provide a generic hash
+// function for pointers. If you want to hash a pointers to a particular class,
+// please define the template specialization elsewhere (for example, in its
+// header file) and keep it specific to just pointers to that class. This is
+// because identity hashes are not desirable for all types that might show up
+// in containers as pointers.
#ifndef BASE_HASH_TABLES_H_
#define BASE_HASH_TABLES_H_