Lines Matching defs:Alloc

13 //           class Alloc = allocator<Value>>
31 typedef test_allocator<int> Alloc;
32 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
34 C c1(0, Hash(1), Compare(1), Alloc(1));
35 C c2(0, Hash(2), Compare(2), Alloc(2));
43 assert(c1.get_allocator() == Alloc(1));
52 assert(c2.get_allocator() == Alloc(2));
60 typedef test_allocator<int> Alloc;
61 typedef std::unordered_set<int, 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));
91 assert(c1.get_allocator() == Alloc(1));
100 assert(c2.get_allocator() == Alloc(2));
108 typedef test_allocator<int> Alloc;
109 typedef std::unordered_set<int, 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));
129 assert(c1.get_allocator() == Alloc(1));
142 assert(c2.get_allocator() == Alloc(2));
150 typedef test_allocator<int> Alloc;
151 typedef std::unordered_set<int, 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));
190 assert(c1.get_allocator() == Alloc(1));
203 assert(c2.get_allocator() == Alloc(2));
212 typedef other_allocator<int> Alloc;
213 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
215 C c1(0, Hash(1), Compare(1), Alloc(1));
216 C c2(0, Hash(2), Compare(2), Alloc(2));
224 assert(c1.get_allocator() == Alloc(2));
233 assert(c2.get_allocator() == Alloc(1));
241 typedef other_allocator<int> Alloc;
242 typedef std::unordered_set<int, 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));
272 assert(c1.get_allocator() == Alloc(2));
281 assert(c2.get_allocator() == Alloc(1));
289 typedef other_allocator<int> Alloc;
290 typedef std::unordered_set<int, 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));
310 assert(c1.get_allocator() == Alloc(2));
323 assert(c2.get_allocator() == Alloc(1));
331 typedef other_allocator<int> Alloc;
332 typedef std::unordered_set<int, 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));
371 assert(c1.get_allocator() == Alloc(2));
384 assert(c2.get_allocator() == Alloc(1));
393 typedef min_allocator<int> Alloc;
394 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
396 C c1(0, Hash(1), Compare(1), Alloc());
397 C c2(0, Hash(2), Compare(2), Alloc());
405 assert(c1.get_allocator() == Alloc());
414 assert(c2.get_allocator() == Alloc());
422 typedef min_allocator<int> Alloc;
423 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
436 C c1(0, Hash(1), Compare(1), Alloc());
437 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
453 assert(c1.get_allocator() == Alloc());
462 assert(c2.get_allocator() == Alloc());
470 typedef min_allocator<int> Alloc;
471 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
482 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
483 C c2(0, Hash(2), Compare(2), Alloc());
491 assert(c1.get_allocator() == Alloc());
504 assert(c2.get_allocator() == Alloc());
512 typedef min_allocator<int> Alloc;
513 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
535 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
536 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc());
552 assert(c1.get_allocator() == Alloc());
565 assert(c2.get_allocator() == Alloc());