diff options
| author | Alexis Hunt <alercah@gmail.com> | 2011-07-29 23:31:56 +0000 |
|---|---|---|
| committer | Alexis Hunt <alercah@gmail.com> | 2011-07-29 23:31:56 +0000 |
| commit | 8d2ed56644047c08e2646aa8c981bebd84347b4a (patch) | |
| tree | 11c6dbd52bbbe6daac1122e7ceafdae5b6219cc2 /libcxx/include/ext/hash_map | |
| parent | fe473ae27747fec22e90083b26c1f81b31a3c68c (diff) | |
| download | bcm5719-llvm-8d2ed56644047c08e2646aa8c981bebd84347b4a.tar.gz bcm5719-llvm-8d2ed56644047c08e2646aa8c981bebd84347b4a.zip | |
Add a new hash class in __gnu_ext for the extension containers. There
are two motivations for this.
First, this allows users who are specializing __gnu_ext::hash to
continue doing so without changing their code.
Second, SGI specifies hash overloads for char* and const char* that
perform a hash of the string, not of the pointer.
In order to support this, the hashing code for string is factored out.
llvm-svn: 136539
Diffstat (limited to 'libcxx/include/ext/hash_map')
| -rw-r--r-- | libcxx/include/ext/hash_map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/ext/hash_map b/libcxx/include/ext/hash_map index 21ce3be8a18..9e62e7a777d 100644 --- a/libcxx/include/ext/hash_map +++ b/libcxx/include/ext/hash_map @@ -203,6 +203,7 @@ template <class Key, class T, class Hash, class Pred, class Alloc> #include <__hash_table> #include <functional> #include <stdexcept> +#include <ext/__hash> #if __DEPRECATED #warning Use of the header <ext/hash_map> is deprecated. Migrate to <unordered_map> |

