Lines Matching refs:iumset
350 umset iumset; in equal_range() local
351 iumset.max_load_factor(10.0f); in equal_range()
353 size_t nbBuckets = iumset.bucket_count(); in equal_range()
356 iumset.insert(i); in equal_range()
357 iumset.insert(i + nbBuckets); in equal_range()
358 iumset.insert(i + 2 * nbBuckets); in equal_range()
359 iumset.insert(i + 3 * nbBuckets); in equal_range()
360 iumset.insert(i + 4 * nbBuckets); in equal_range()
363 CPPUNIT_ASSERT( nbBuckets == iumset.bucket_count() ); in equal_range()
364 CPPUNIT_ASSERT( iumset.size() == 5 * nbBuckets ); in equal_range()
366 pair<umset::iterator, umset::iterator> p = iumset.equal_range(1); in equal_range()
369 size_t nbElems = iumset.size(); in equal_range()
372 iumset.erase(j++); in equal_range()
375 CPPUNIT_ASSERT( nbElems == iumset.size() ); in equal_range()
377 p = iumset.equal_range(2); in equal_range()
380 iumset.erase(p.first, p.second); in equal_range()
381 CPPUNIT_ASSERT( nbElems == iumset.size() ); in equal_range()
386 umset iumset; in equal_range() local
391 iumset.rehash(193); in equal_range()
393 size_t nbBuckets = iumset.bucket_count(); in equal_range()
398 iumset.insert(targetedBucket + (i * nbBuckets)); in equal_range()
403 iumset.insert(targetedBucket + (i * nbBuckets)); in equal_range()
408 while (iumset.bucket_count() == nbBuckets) { in equal_range()
409 iumset.insert(i++); in equal_range()
414 pair<umset::iterator, umset::iterator> p = iumset.equal_range(targetedBucket); in equal_range()
419 nbBuckets = iumset.bucket_count(); in equal_range()
420 while (iumset.bucket_count() == nbBuckets && in equal_range()
421 !iumset.empty()) { in equal_range()
422 iumset.erase(iumset.begin()); in equal_range()
424 CPPUNIT_ASSERT( iumset.load_factor() <= iumset.max_load_factor() ); in equal_range()
427 nbBuckets = iumset.bucket_count(); in equal_range()
428 iumset.insert(0); in equal_range()
429 CPPUNIT_ASSERT( iumset.bucket_count() == nbBuckets ); in equal_range()
482 umset iumset; in benchmark1() local
483 iumset.max_load_factor(10); in benchmark1()
486 iumset.insert(i); in benchmark1()
490 iumset.erase(i); in benchmark1()
501 umset iumset; in benchmark2() local
502 iumset.max_load_factor(10); in benchmark2()
505 iumset.insert(target - i); in benchmark2()
509 iumset.erase(target - i); in benchmark2()