Home | History | Annotate | Download | only in unord.multiset

Lines Matching defs:Hash

12 // template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
28 typedef test_hash<std::hash<int> > Hash;
31 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
33 C c1(0, Hash(1), Compare(1), Alloc(1));
34 C c2(0, Hash(2), Compare(2), Alloc(2));
40 assert(c1.hash_function() == Hash(2));
49 assert(c2.hash_function() == Hash(1));
57 typedef test_hash<std::hash<int> > Hash;
60 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
73 C c1(0, Hash(1), Compare(1), Alloc(1));
74 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
88 assert(c1.hash_function() == Hash(2));
97 assert(c2.hash_function() == Hash(1));
105 typedef test_hash<std::hash<int> > Hash;
108 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
119 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
120 C c2(0, Hash(2), Compare(2), Alloc(2));
126 assert(c1.hash_function() == Hash(2));
139 assert(c2.hash_function() == Hash(1));
147 typedef test_hash<std::hash<int> > Hash;
150 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
172 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
173 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
187 assert(c1.hash_function() == Hash(2));
200 assert(c2.hash_function() == Hash(1));
209 typedef test_hash<std::hash<int> > Hash;
212 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
214 C c1(0, Hash(1), Compare(1), Alloc(1));
215 C c2(0, Hash(2), Compare(2), Alloc(2));
221 assert(c1.hash_function() == Hash(2));
230 assert(c2.hash_function() == Hash(1));
238 typedef test_hash<std::hash<int> > Hash;
241 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
254 C c1(0, Hash(1), Compare(1), Alloc(1));
255 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
269 assert(c1.hash_function() == Hash(2));
278 assert(c2.hash_function() == Hash(1));
286 typedef test_hash<std::hash<int> > Hash;
289 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
300 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
301 C c2(0, Hash(2), Compare(2), Alloc(2));
307 assert(c1.hash_function() == Hash(2));
320 assert(c2.hash_function() == Hash(1));
328 typedef test_hash<std::hash<int> > Hash;
331 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
353 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
354 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
368 assert(c1.hash_function() == Hash(2));
381 assert(c2.hash_function() == Hash(1));