Lines Matching defs:Alloc

13 //           class Alloc = allocator<pair<const Key, T>>>
32 typedef test_allocator<std::pair<const int, std::string> > Alloc;
33 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));
44 assert(c1.get_allocator() == Alloc(1));
53 assert(c2.get_allocator() == Alloc(2));
61 typedef test_allocator<std::pair<const int, std::string> > Alloc;
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));
92 assert(c1.get_allocator() == Alloc(1));
101 assert(c2.get_allocator() == Alloc(2));
109 typedef test_allocator<std::pair<const int, std::string> > Alloc;
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));
130 assert(c1.get_allocator() == Alloc(1));
143 assert(c2.get_allocator() == Alloc(2));
151 typedef test_allocator<std::pair<const int, std::string> > Alloc;
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));
191 assert(c1.get_allocator() == Alloc(1));
204 assert(c2.get_allocator() == Alloc(2));
213 typedef other_allocator<std::pair<const int, std::string> > Alloc;
214 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
216 C c1(0, Hash(1), Compare(1), Alloc(1));
217 C c2(0, Hash(2), Compare(2), Alloc(2));
225 assert(c1.get_allocator() == Alloc(2));
234 assert(c2.get_allocator() == Alloc(1));
242 typedef other_allocator<std::pair<const int, std::string> > Alloc;
243 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
256 C c1(0, Hash(1), Compare(1), Alloc(1));
257 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
273 assert(c1.get_allocator() == Alloc(2));
282 assert(c2.get_allocator() == Alloc(1));
290 typedef other_allocator<std::pair<const int, std::string> > Alloc;
291 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
302 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
303 C c2(0, Hash(2), Compare(2), Alloc(2));
311 assert(c1.get_allocator() == Alloc(2));
324 assert(c2.get_allocator() == Alloc(1));
332 typedef other_allocator<std::pair<const int, std::string> > Alloc;
333 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
355 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
356 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
372 assert(c1.get_allocator() == Alloc(2));
385 assert(c2.get_allocator() == Alloc(1));
394 typedef min_allocator<std::pair<const int, std::string> > Alloc;
395 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
397 C c1(0, Hash(1), Compare(1), Alloc());
398 C c2(0, Hash(2), Compare(2), Alloc());
406 assert(c1.get_allocator() == Alloc());
415 assert(c2.get_allocator() == Alloc());
423 typedef min_allocator<std::pair<const int, std::string> > Alloc;
424 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
437 C c1(0, Hash(1), Compare(1), Alloc());
438 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
454 assert(c1.get_allocator() == Alloc());
463 assert(c2.get_allocator() == Alloc());
471 typedef min_allocator<std::pair<const int, std::string> > Alloc;
472 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
483 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
484 C c2(0, Hash(2), Compare(2), Alloc());
492 assert(c1.get_allocator() == Alloc());
505 assert(c2.get_allocator() == Alloc());
513 typedef min_allocator<std::pair<const int, std::string> > Alloc;
514 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
536 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
537 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
553 assert(c1.get_allocator() == Alloc());
566 assert(c2.get_allocator() == Alloc());