Lines Matching defs:IntHash
89 template<typename T> struct IntHash {
118 return IntHash<uintptr_t>::hash(reinterpret_cast<uintptr_t>(key));
152 // make IntHash the default hash function for many integer types
154 template<> struct DefaultHash<short> { typedef IntHash<unsigned> Hash; };
155 template<> struct DefaultHash<unsigned short> { typedef IntHash<unsigned> Hash; };
156 template<> struct DefaultHash<int> { typedef IntHash<unsigned> Hash; };
157 template<> struct DefaultHash<unsigned> { typedef IntHash<unsigned> Hash; };
158 template<> struct DefaultHash<long> { typedef IntHash<unsigned long> Hash; };
159 template<> struct DefaultHash<unsigned long> { typedef IntHash<unsigned long> Hash; };
160 template<> struct DefaultHash<long long> { typedef IntHash<unsigned long long> Hash; };
161 template<> struct DefaultHash<unsigned long long> { typedef IntHash<unsigned long long> Hash; };
164 template<> struct DefaultHash<wchar_t> { typedef IntHash<wchar_t> Hash; };
180 using WTF::IntHash;