6 typedef IntrusiveCuckooSetHdrTest::hash_int hash1;
7 struct hash2: private hash1
9 typedef hash1 base_class;
11 size_t operator()( int i ) const
13 size_t h = ~( base_class::operator()(i));
14 return ~h + 0x9e3779b9 + (h << 6) + (h >> 2);
16 template <typename Item>
17 size_t operator()( const Item& i ) const
19 size_t h = ~( base_class::operator()(i));
20 return ~h + 0x9e3779b9 + (h << 6) + (h >> 2);
22 size_t operator()( IntrusiveCuckooSetHdrTest::find_key const& i) const
24 size_t h = ~( base_class::operator()(i));
25 return ~h + 0x9e3779b9 + (h << 6) + (h >> 2);
32 bool operator ()(const T& v1, const T& v2 ) const
34 return v1.key() == v2.key();
38 bool operator ()(const T& v1, const Q& v2 ) const
40 return v1.key() == v2;
44 bool operator ()(const Q& v1, const T& v2 ) const
46 return v1 == v2.key();