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>,
29 typedef test_hash<std::hash<int> > Hash;
32 typedef std::unordered_map<int, std::string, 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_map<int, std::string, 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_map<int, std::string, 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_map<int, std::string, 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_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));