Lines Matching defs:Alloc

13 //           class Alloc = allocator<pair<const Key, T>>>
33 typedef test_allocator<std::pair<const int, std::string> > Alloc;
34 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
36 C c1(0, Hash(1), Compare(1), Alloc(1));
37 C c2(0, Hash(2), Compare(2), Alloc(2));
45 assert(c1.get_allocator() == Alloc(1));
54 assert(c2.get_allocator() == Alloc(2));
62 typedef test_allocator<std::pair<const int, std::string> > Alloc;
63 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
76 C c1(0, Hash(1), Compare(1), Alloc(1));
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
93 assert(c1.get_allocator() == Alloc(1));
102 assert(c2.get_allocator() == Alloc(2));
110 typedef test_allocator<std::pair<const int, std::string> > Alloc;
111 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
122 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
123 C c2(0, Hash(2), Compare(2), Alloc(2));
131 assert(c1.get_allocator() == Alloc(1));
146 assert(c2.get_allocator() == Alloc(2));
154 typedef test_allocator<std::pair<const int, std::string> > Alloc;
155 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
177 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
178 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
194 assert(c1.get_allocator() == Alloc(1));
209 assert(c2.get_allocator() == Alloc(2));
218 typedef other_allocator<std::pair<const int, std::string> > Alloc;
219 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
221 C c1(0, Hash(1), Compare(1), Alloc(1));
222 C c2(0, Hash(2), Compare(2), Alloc(2));
230 assert(c1.get_allocator() == Alloc(2));
239 assert(c2.get_allocator() == Alloc(1));
247 typedef other_allocator<std::pair<const int, std::string> > Alloc;
248 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
261 C c1(0, Hash(1), Compare(1), Alloc(1));
262 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
278 assert(c1.get_allocator() == Alloc(2));
287 assert(c2.get_allocator() == Alloc(1));
295 typedef other_allocator<std::pair<const int, std::string> > Alloc;
296 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
307 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
308 C c2(0, Hash(2), Compare(2), Alloc(2));
316 assert(c1.get_allocator() == Alloc(2));
331 assert(c2.get_allocator() == Alloc(1));
339 typedef other_allocator<std::pair<const int, std::string> > Alloc;
340 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
362 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
363 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2));
379 assert(c1.get_allocator() == Alloc(2));
394 assert(c2.get_allocator() == Alloc(1));
403 typedef min_allocator<std::pair<const int, std::string> > Alloc;
404 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
406 C c1(0, Hash(1), Compare(1), Alloc());
407 C c2(0, Hash(2), Compare(2), Alloc());
415 assert(c1.get_allocator() == Alloc());
424 assert(c2.get_allocator() == Alloc());
432 typedef min_allocator<std::pair<const int, std::string> > Alloc;
433 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
446 C c1(0, Hash(1), Compare(1), Alloc());
447 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
463 assert(c1.get_allocator() == Alloc());
472 assert(c2.get_allocator() == Alloc());
480 typedef min_allocator<std::pair<const int, std::string> > Alloc;
481 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
492 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
493 C c2(0, Hash(2), Compare(2), Alloc());
501 assert(c1.get_allocator() == Alloc());
516 assert(c2.get_allocator() == Alloc());
524 typedef min_allocator<std::pair<const int, std::string> > Alloc;
525 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
547 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
548 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
564 assert(c1.get_allocator() == Alloc());
579 assert(c2.get_allocator() == Alloc());