Lines Matching refs:mutable_b

412   T &mutable_b = *b;  in DoTest()  local
417 mutable_b.insert(values[i]); in DoTest()
418 mutable_b.value_check(values[i]); in DoTest()
420 ASSERT_EQ(mutable_b.size(), values.size()); in DoTest()
480 mutable_b.erase(key_of_value(values[i])); in DoTest()
482 ASSERT_EQ(mutable_b.erase(key_of_value(values[i])), 0); in DoTest()
489 mutable_b = b_copy; in DoTest()
491 mutable_b.erase(mutable_b.find(key_of_value(values[i]))); in DoTest()
499 mutable_b.insert(mutable_b.upper_bound(key_of_value(values[i])), values[i]); in DoTest()
505 mutable_b.erase(mutable_b.begin(), mutable_b.end()); in DoTest()
506 EXPECT_EQ(mutable_b.size(), 0); in DoTest()
510 mutable_b = b_copy; in DoTest()
511 typename T::iterator mutable_iter_end = mutable_b.begin(); in DoTest()
513 mutable_b.erase(mutable_b.begin(), mutable_iter_end); in DoTest()
514 EXPECT_EQ(mutable_b.size(), values.size() - values.size() / 2); in DoTest()
518 mutable_b = b_copy; in DoTest()
519 typename T::iterator mutable_iter_begin = mutable_b.begin(); in DoTest()
521 mutable_b.erase(mutable_iter_begin, mutable_b.end()); in DoTest()
522 EXPECT_EQ(mutable_b.size(), values.size() / 2); in DoTest()
526 mutable_b = b_copy; in DoTest()
527 mutable_iter_begin = mutable_b.begin(); in DoTest()
531 mutable_b.erase(mutable_iter_begin, mutable_iter_end); in DoTest()
532 EXPECT_EQ(mutable_b.size(), values.size() - values.size() / 4); in DoTest()
535 mutable_b.clear(); in DoTest()
543 T mutable_b; in ConstTest() local
544 const T &const_b = mutable_b; in ConstTest()
548 mutable_b.insert(value); in ConstTest()
549 EXPECT_TRUE(mutable_b.contains(key_of_value(value))); in ConstTest()
550 EXPECT_NE(mutable_b.find(key_of_value(value)), const_b.end()); in ConstTest()
552 EXPECT_NE(const_b.find(key_of_value(value)), mutable_b.end()); in ConstTest()
558 typename T::iterator mutable_iter(mutable_b.begin()); in ConstTest()
563 typename T::reverse_iterator mutable_riter(mutable_b.rbegin()); in ConstTest()
571 EXPECT_EQ(const_iter, mutable_b.begin()); in ConstTest()
572 EXPECT_NE(const_iter, mutable_b.end()); in ConstTest()
573 EXPECT_EQ(mutable_b.begin(), const_iter); in ConstTest()
574 EXPECT_NE(mutable_b.end(), const_iter); in ConstTest()
576 EXPECT_EQ(const_riter, mutable_b.rbegin()); in ConstTest()
577 EXPECT_NE(const_riter, mutable_b.rend()); in ConstTest()
578 EXPECT_EQ(mutable_b.rbegin(), const_riter); in ConstTest()
579 EXPECT_NE(mutable_b.rend(), const_riter); in ConstTest()