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_multimap<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_multimap<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_multimap<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));
145 assert(c2.get_allocator() == Alloc(2));
153 typedef test_allocator<std::pair<const int, std::string> > Alloc;
154 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
176 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
177 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
193 assert(c1.get_allocator() == Alloc(1));
208 assert(c2.get_allocator() == Alloc(2));
217 typedef other_allocator<std::pair<const int, std::string> > Alloc;
218 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
220 C c1(0, Hash(1), Compare(1), Alloc(1));
221 C c2(0, Hash(2), Compare(2), Alloc(2));
229 assert(c1.get_allocator() == Alloc(2));
238 assert(c2.get_allocator() == Alloc(1));
246 typedef other_allocator<std::pair<const int, std::string> > Alloc;
247 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
260 C c1(0, Hash(1), Compare(1), Alloc(1));
261 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
277 assert(c1.get_allocator() == Alloc(2));
286 assert(c2.get_allocator() == Alloc(1));
294 typedef other_allocator<std::pair<const int, std::string> > Alloc;
295 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
306 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
307 C c2(0, Hash(2), Compare(2), Alloc(2));
315 assert(c1.get_allocator() == Alloc(2));
330 assert(c2.get_allocator() == Alloc(1));
338 typedef other_allocator<std::pair<const int, std::string> > Alloc;
339 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
361 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
362 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
378 assert(c1.get_allocator() == Alloc(2));
393 assert(c2.get_allocator() == Alloc(1));
402 typedef min_allocator<std::pair<const int, std::string> > Alloc;
403 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
405 C c1(0, Hash(1), Compare(1), Alloc());
406 C c2(0, Hash(2), Compare(2), Alloc());
414 assert(c1.get_allocator() == Alloc());
423 assert(c2.get_allocator() == Alloc());
431 typedef min_allocator<std::pair<const int, std::string> > Alloc;
432 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
445 C c1(0, Hash(1), Compare(1), Alloc());
446 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
462 assert(c1.get_allocator() == Alloc());
471 assert(c2.get_allocator() == Alloc());
479 typedef min_allocator<std::pair<const int, std::string> > Alloc;
480 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
491 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
492 C c2(0, Hash(2), Compare(2), Alloc());
500 assert(c1.get_allocator() == Alloc());
515 assert(c2.get_allocator() == Alloc());
523 typedef min_allocator<std::pair<const int, std::string> > Alloc;
524 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
546 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
547 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
563 assert(c1.get_allocator() == Alloc());
578 assert(c2.get_allocator() == Alloc());