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_multimap<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_multimap<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_multimap<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));
143 assert(c2.hash_function() == Hash(1));
151 typedef test_hash<std::hash<int> > Hash;
154 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
176 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
177 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
191 assert(c1.hash_function() == Hash(2));
206 assert(c2.hash_function() == Hash(1));
215 typedef test_hash<std::hash<int> > Hash;
218 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
220 C c1(0, Hash(1), Compare(1), Alloc(1));
221 C c2(0, Hash(2), Compare(2), Alloc(2));
227 assert(c1.hash_function() == Hash(2));
236 assert(c2.hash_function() == Hash(1));
244 typedef test_hash<std::hash<int> > Hash;
247 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
260 C c1(0, Hash(1), Compare(1), Alloc(1));
261 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
275 assert(c1.hash_function() == Hash(2));
284 assert(c2.hash_function() == Hash(1));
292 typedef test_hash<std::hash<int> > Hash;
295 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
306 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
307 C c2(0, Hash(2), Compare(2), Alloc(2));
313 assert(c1.hash_function() == Hash(2));
328 assert(c2.hash_function() == Hash(1));
336 typedef test_hash<std::hash<int> > Hash;
339 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
361 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
362 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
376 assert(c1.hash_function() == Hash(2));
391 assert(c2.hash_function() == Hash(1));
400 typedef test_hash<std::hash<int> > Hash;
403 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
405 C c1(0, Hash(1), Compare(1), Alloc());
406 C c2(0, Hash(2), Compare(2), Alloc());
412 assert(c1.hash_function() == Hash(2));
421 assert(c2.hash_function() == Hash(1));
429 typedef test_hash<std::hash<int> > Hash;
432 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
445 C c1(0, Hash(1), Compare(1), Alloc());
446 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
460 assert(c1.hash_function() == Hash(2));
469 assert(c2.hash_function() == Hash(1));
477 typedef test_hash<std::hash<int> > Hash;
480 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
491 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
492 C c2(0, Hash(2), Compare(2), Alloc());
498 assert(c1.hash_function() == Hash(2));
513 assert(c2.hash_function() == Hash(1));
521 typedef test_hash<std::hash<int> > Hash;
524 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
546 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
547 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
561 assert(c1.hash_function() == Hash(2));
576 assert(c2.hash_function() == Hash(1));