Lines Matching refs:hash
22 // base::hash is an implementation of the hash function object specified by
23 // C++11. It was designed to be compatible with std::hash (in C++11) and
24 // boost:hash (which in turn is based on the hash function object specified by
27 // base::hash is implemented by calling the hash_value function. The namespace
32 // If users are asked to implement a hash function for their own types with no
33 // guidance, they generally write bad hash functions. Instead, we provide a
34 // simple function base::hash_combine to pass hash-relevant member variables
35 // into, in order to define a decent hash function. base::hash_combine is
53 // base::hash<bar::Point> h;
66 struct hash;
74 return hash_combine(hash_combine(vs...), hash<T>()(v));
111 // 0 and -0 both hash to zero.
116 // 0 and -0 both hash to zero.
141 struct hash {
147 struct hash<type> { \
168 struct hash<T*> {
179 // base::hash. It can be used together with base::bit_equal_to to implement a
180 // hash data structure based on the bitwise representation of types.
192 struct bit_hash<type> : public hash<type> {};
215 hash<btype> h; \