Home | History | Annotate | Download | only in unord.map.swap

Lines Matching defs:Hash

12 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
31 typedef test_hash<std::hash<int> > Hash;
34 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;
215 C c1(0, Hash(1), Compare(1), Alloc(1));
216 C c2(0, Hash(2), Compare(2), Alloc(2));
222 assert(c1.hash_function() == Hash(2));
231 assert(c2.hash_function() == Hash(1));
239 typedef test_hash<std::hash<int> > Hash;
242 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
255 C c1(0, Hash(1), Compare(1), Alloc(1));
256 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
270 assert(c1.hash_function() == Hash(2));
279 assert(c2.hash_function() == Hash(1));
287 typedef test_hash<std::hash<int> > Hash;
290 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
301 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
302 C c2(0, Hash(2), Compare(2), Alloc(2));
308 assert(c1.hash_function() == Hash(2));
321 assert(c2.hash_function() == Hash(1));
329 typedef test_hash<std::hash<int> > Hash;
332 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
354 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
355 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
369 assert(c1.hash_function() == Hash(2));
382 assert(c2.hash_function() == Hash(1));
391 typedef test_hash<std::hash<int> > Hash;
394 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
395 C c1(0, Hash(1), Compare(1), Alloc());
396 C c2(0, Hash(2), Compare(2), Alloc());
402 assert(c1.hash_function() == Hash(2));
411 assert(c2.hash_function() == Hash(1));
419 typedef test_hash<std::hash<int> > Hash;
422 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
435 C c1(0, Hash(1), Compare(1), Alloc());
436 Hash(2), Compare(2), Alloc());
450 assert(c1.hash_function() == Hash(2));
459 assert(c2.hash_function() == Hash(1));
467 typedef test_hash<std::hash<int> > Hash;
470 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
481 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
482 C c2(0, Hash(2), Compare(2), Alloc());
488 assert(c1.hash_function() == Hash(2));
501 assert(c2.hash_function() == Hash(1));
509 typedef test_hash<std::hash<int> > Hash;
512 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
534 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
535 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
549 assert(c1.hash_function() == Hash(2));
562 assert(c2.hash_function() == Hash(1));