Lines Matching refs:c1

35         C c1(0, Hash(1), Compare(1), Alloc(1, 1));
38 swap(c1, c2);
40 LIBCPP_ASSERT(c1.bucket_count() == 0);
41 assert(c1.size() == 0);
42 assert(c1.hash_function() == Hash(2));
43 assert(c1.key_eq() == Compare(2));
44 assert(c1.get_allocator().get_id() == 1);
45 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
46 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
47 assert(c1.max_load_factor() == 2);
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
78 swap(c1, c2);
80 assert(c1.bucket_count() >= 8);
81 assert(c1.size() == 8);
82 assert(*c1.find(10) == 10);
83 assert(*c1.find(20) == 20);
84 assert(*c1.find(30) == 30);
85 assert(*c1.find(40) == 40);
86 assert(*c1.find(50) == 50);
87 assert(*c1.find(60) == 60);
88 assert(*c1.find(70) == 70);
89 assert(*c1.find(80) == 80);
90 assert(c1.hash_function() == Hash(2));
91 assert(c1.key_eq() == Compare(2));
92 assert(c1.get_allocator().get_id() == 1);
93 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
94 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
95 assert(c1.max_load_factor() == 2);
121 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1, 1));
124 swap(c1, c2);
126 LIBCPP_ASSERT(c1.bucket_count() == 0);
127 assert(c1.size() == 0);
128 assert(c1.hash_function() == Hash(2));
129 assert(c1.key_eq() == Compare(2));
130 assert(c1.get_allocator().get_id() == 1);
131 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
132 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
133 assert(c1.max_load_factor() == 2);
174 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1, 1));
177 swap(c1, c2);
179 assert(c1.bucket_count() >= 8);
180 assert(c1.size() == 8);
181 assert(*c1.find(10) == 10);
182 assert(*c1.find(20) == 20);
183 assert(*c1.find(30) == 30);
184 assert(*c1.find(40) == 40);
185 assert(*c1.find(50) == 50);
186 assert(*c1.find(60) == 60);
187 assert(*c1.find(70) == 70);
188 assert(*c1.find(80) == 80);
189 assert(c1.hash_function() == Hash(2));
190 assert(c1.key_eq() == Compare(2));
191 assert(c1.get_allocator().get_id() == 1);
192 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
193 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
194 assert(c1.max_load_factor() == 2);
215 C c1(0, Hash(1), Compare(1), Alloc(1));
218 swap(c1, c2);
220 LIBCPP_ASSERT(c1.bucket_count() == 0);
221 assert(c1.size() == 0);
222 assert(c1.hash_function() == Hash(2));
223 assert(c1.key_eq() == Compare(2));
224 assert(c1.get_allocator() == Alloc(2));
225 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
226 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
227 assert(c1.max_load_factor() == 2);
255 C c1(0, Hash(1), Compare(1), Alloc(1));
258 swap(c1, c2);
260 assert(c1.bucket_count() >= 8);
261 assert(c1.size() == 8);
262 assert(*c1.find(10) == 10);
263 assert(*c1.find(20) == 20);
264 assert(*c1.find(30) == 30);
265 assert(*c1.find(40) == 40);
266 assert(*c1.find(50) == 50);
267 assert(*c1.find(60) == 60);
268 assert(*c1.find(70) == 70);
269 assert(*c1.find(80) == 80);
270 assert(c1.hash_function() == Hash(2));
271 assert(c1.key_eq() == Compare(2));
272 assert(c1.get_allocator() == Alloc(2));
273 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
274 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
275 assert(c1.max_load_factor() == 2);
301 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
304 swap(c1, c2);
306 LIBCPP_ASSERT(c1.bucket_count() == 0);
307 assert(c1.size() == 0);
308 assert(c1.hash_function() == Hash(2));
309 assert(c1.key_eq() == Compare(2));
310 assert(c1.get_allocator() == Alloc(2));
311 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
312 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
313 assert(c1.max_load_factor() == 2);
354 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc(1));
357 swap(c1, c2);
359 assert(c1.bucket_count() >= 8);
360 assert(c1.size() == 8);
361 assert(*c1.find(10) == 10);
362 assert(*c1.find(20) == 20);
363 assert(*c1.find(30) == 30);
364 assert(*c1.find(40) == 40);
365 assert(*c1.find(50) == 50);
366 assert(*c1.find(60) == 60);
367 assert(*c1.find(70) == 70);
368 assert(*c1.find(80) == 80);
369 assert(c1.hash_function() == Hash(2));
370 assert(c1.key_eq() == Compare(2));
371 assert(c1.get_allocator() == Alloc(2));
372 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
373 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
374 assert(c1.max_load_factor() == 2);
395 C c1(0, Hash(1), Compare(1), Alloc());
398 swap(c1, c2);
400 LIBCPP_ASSERT(c1.bucket_count() == 0);
401 assert(c1.size() == 0);
402 assert(c1.hash_function() == Hash(2));
403 assert(c1.key_eq() == Compare(2));
404 assert(c1.get_allocator() == Alloc());
405 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
406 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
407 assert(c1.max_load_factor() == 2);
435 C c1(0, Hash(1), Compare(1), Alloc());
438 swap(c1, c2);
440 assert(c1.bucket_count() >= 8);
441 assert(c1.size() == 8);
442 assert(*c1.find(10) == 10);
443 assert(*c1.find(20) == 20);
444 assert(*c1.find(30) == 30);
445 assert(*c1.find(40) == 40);
446 assert(*c1.find(50) == 50);
447 assert(*c1.find(60) == 60);
448 assert(*c1.find(70) == 70);
449 assert(*c1.find(80) == 80);
450 assert(c1.hash_function() == Hash(2));
451 assert(c1.key_eq() == Compare(2));
452 assert(c1.get_allocator() == Alloc());
453 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
454 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
455 assert(c1.max_load_factor() == 2);
481 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
484 swap(c1, c2);
486 LIBCPP_ASSERT(c1.bucket_count() == 0);
487 assert(c1.size() == 0);
488 assert(c1.hash_function() == Hash(2));
489 assert(c1.key_eq() == Compare(2));
490 assert(c1.get_allocator() == Alloc());
491 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
492 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
493 assert(c1.max_load_factor() == 2);
534 C c1(std::begin(a1), std::end(a1), 0, Hash(1), Compare(1), Alloc());
537 swap(c1, c2);
539 assert(c1.bucket_count() >= 8);
540 assert(c1.size() == 8);
541 assert(*c1.find(10) == 10);
542 assert(*c1.find(20) == 20);
543 assert(*c1.find(30) == 30);
544 assert(*c1.find(40) == 40);
545 assert(*c1.find(50) == 50);
546 assert(*c1.find(60) == 60);
547 assert(*c1.find(70) == 70);
548 assert(*c1.find(80) == 80);
549 assert(c1.hash_function() == Hash(2));
550 assert(c1.key_eq() == Compare(2));
551 assert(c1.get_allocator() == Alloc());
552 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size());
553 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size());
554 assert(c1.max_load_factor() == 2);