Lines Matching defs:Hash

12 // template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
29 typedef test_hash<std::hash<int> > Hash;
32 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
34 C c1(0, Hash(1), Compare(1), Alloc(1));
35 C c2(0, Hash(2), Compare(2), Alloc(2));
41 assert(c1.hash_function() == Hash(2));
50 assert(c2.hash_function() == Hash(1));
58 typedef test_hash<std::hash<int> > Hash;
61 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
74 C c1(0, Hash(1), Compare(1), Alloc(1));
75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
89 assert(c1.hash_function() == Hash(2));
98 assert(c2.hash_function() == Hash(1));
106 typedef test_hash<std::hash<int> > Hash;
109 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
120 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
121 C c2(0, Hash(2), Compare(2), Alloc(2));
127 assert(c1.hash_function() == Hash(2));
140 assert(c2.hash_function() == Hash(1));
148 typedef test_hash<std::hash<int> > Hash;
151 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
173 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
174 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
188 assert(c1.hash_function() == Hash(2));
201 assert(c2.hash_function() == Hash(1));
210 typedef test_hash<std::hash<int> > Hash;
213 typedef std::unordered_set<int, 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_set<int, 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_set<int, 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_set<int, 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_set<int, Hash, Compare, Alloc> C;
396 C c1(0, Hash(1), Compare(1), Alloc());
397 C c2(0, Hash(2), Compare(2), Alloc());
403 assert(c1.hash_function() == Hash(2));
412 assert(c2.hash_function() == Hash(1));
420 typedef test_hash<std::hash<int> > Hash;
423 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
436 C c1(0, Hash(1), Compare(1), Alloc());
437 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
451 assert(c1.hash_function() == Hash(2));
460 assert(c2.hash_function() == Hash(1));
468 typedef test_hash<std::hash<int> > Hash;
471 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
482 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
483 C c2(0, Hash(2), Compare(2), Alloc());
489 assert(c1.hash_function() == Hash(2));
502 assert(c2.hash_function() == Hash(1));
510 typedef test_hash<std::hash<int> > Hash;
513 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
535 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
536 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
550 assert(c1.hash_function() == Hash(2));
563 assert(c2.hash_function() == Hash(1));