Lines Matching defs:Hash

12 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
30 typedef test_hash<std::hash<int> > Hash;
33 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
35 C c1(0, Hash(1), Compare(1), Alloc(1));
36 C c2(0, Hash(2), Compare(2), Alloc(2));
42 assert(c1.hash_function() == Hash(2));
51 assert(c2.hash_function() == Hash(1));
59 typedef test_hash<std::hash<int> > Hash;
62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
75 C c1(0, Hash(1), Compare(1), Alloc(1));
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
90 assert(c1.hash_function() == Hash(2));
99 assert(c2.hash_function() == Hash(1));
107 typedef test_hash<std::hash<int> > Hash;
110 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
121 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
122 C c2(0, Hash(2), Compare(2), Alloc(2));
128 assert(c1.hash_function() == Hash(2));
141 assert(c2.hash_function() == Hash(1));
149 typedef test_hash<std::hash<int> > Hash;
152 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
174 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
175 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
189 assert(c1.hash_function() == Hash(2));
202 assert(c2.hash_function() == Hash(1));
211 typedef test_hash<std::hash<int> > Hash;
214 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
216 C c1(0, Hash(1), Compare(1), Alloc(1));
217 C c2(0, Hash(2), Compare(2), Alloc(2));
223 assert(c1.hash_function() == Hash(2));
232 assert(c2.hash_function() == Hash(1));
240 typedef test_hash<std::hash<int> > Hash;
243 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
256 C c1(0, Hash(1), Compare(1), Alloc(1));
257 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
271 assert(c1.hash_function() == Hash(2));
280 assert(c2.hash_function() == Hash(1));
288 typedef test_hash<std::hash<int> > Hash;
291 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
302 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
303 C c2(0, Hash(2), Compare(2), Alloc(2));
309 assert(c1.hash_function() == Hash(2));
322 assert(c2.hash_function() == Hash(1));
330 typedef test_hash<std::hash<int> > Hash;
333 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
355 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
356 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
370 assert(c1.hash_function() == Hash(2));
383 assert(c2.hash_function() == Hash(1));
392 typedef test_hash<std::hash<int> > Hash;
395 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
397 C c1(0, Hash(1), Compare(1), Alloc());
398 C c2(0, Hash(2), Compare(2), Alloc());
404 assert(c1.hash_function() == Hash(2));
413 assert(c2.hash_function() == Hash(1));
421 typedef test_hash<std::hash<int> > Hash;
424 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
437 C c1(0, Hash(1), Compare(1), Alloc());
438 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
452 assert(c1.hash_function() == Hash(2));
461 assert(c2.hash_function() == Hash(1));
469 typedef test_hash<std::hash<int> > Hash;
472 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
483 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
484 C c2(0, Hash(2), Compare(2), Alloc());
490 assert(c1.hash_function() == Hash(2));
503 assert(c2.hash_function() == Hash(1));
511 typedef test_hash<std::hash<int> > Hash;
514 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
536 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
537 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
551 assert(c1.hash_function() == Hash(2));
564 assert(c2.hash_function() == Hash(1));