Lines Matching refs:mutable_b
410 T &mutable_b = *b; in DoTest() local
415 mutable_b.insert(values[i]); in DoTest()
416 mutable_b.value_check(values[i]); in DoTest()
418 ASSERT_EQ(mutable_b.size(), values.size()); in DoTest()
478 mutable_b.erase(key_of_value(values[i])); in DoTest()
480 ASSERT_EQ(mutable_b.erase(key_of_value(values[i])), 0); in DoTest()
487 mutable_b = b_copy; in DoTest()
489 mutable_b.erase(mutable_b.find(key_of_value(values[i]))); in DoTest()
497 mutable_b.insert(mutable_b.upper_bound(key_of_value(values[i])), values[i]); in DoTest()
503 mutable_b.erase(mutable_b.begin(), mutable_b.end()); in DoTest()
504 EXPECT_EQ(mutable_b.size(), 0); in DoTest()
508 mutable_b = b_copy; in DoTest()
509 typename T::iterator mutable_iter_end = mutable_b.begin(); in DoTest()
511 mutable_b.erase(mutable_b.begin(), mutable_iter_end); in DoTest()
512 EXPECT_EQ(mutable_b.size(), values.size() - values.size() / 2); in DoTest()
516 mutable_b = b_copy; in DoTest()
517 typename T::iterator mutable_iter_begin = mutable_b.begin(); in DoTest()
519 mutable_b.erase(mutable_iter_begin, mutable_b.end()); in DoTest()
520 EXPECT_EQ(mutable_b.size(), values.size() / 2); in DoTest()
524 mutable_b = b_copy; in DoTest()
525 mutable_iter_begin = mutable_b.begin(); in DoTest()
529 mutable_b.erase(mutable_iter_begin, mutable_iter_end); in DoTest()
530 EXPECT_EQ(mutable_b.size(), values.size() - values.size() / 4); in DoTest()
533 mutable_b.clear(); in DoTest()
541 T mutable_b; in ConstTest() local
542 const T &const_b = mutable_b; in ConstTest()
546 mutable_b.insert(value); in ConstTest()
547 EXPECT_TRUE(mutable_b.contains(key_of_value(value))); in ConstTest()
548 EXPECT_NE(mutable_b.find(key_of_value(value)), const_b.end()); in ConstTest()
550 EXPECT_NE(const_b.find(key_of_value(value)), mutable_b.end()); in ConstTest()
556 typename T::iterator mutable_iter(mutable_b.begin()); in ConstTest()
561 typename T::reverse_iterator mutable_riter(mutable_b.rbegin()); in ConstTest()
569 EXPECT_EQ(const_iter, mutable_b.begin()); in ConstTest()
570 EXPECT_NE(const_iter, mutable_b.end()); in ConstTest()
571 EXPECT_EQ(mutable_b.begin(), const_iter); in ConstTest()
572 EXPECT_NE(mutable_b.end(), const_iter); in ConstTest()
574 EXPECT_EQ(const_riter, mutable_b.rbegin()); in ConstTest()
575 EXPECT_NE(const_riter, mutable_b.rend()); in ConstTest()
576 EXPECT_EQ(mutable_b.rbegin(), const_riter); in ConstTest()
577 EXPECT_NE(mutable_b.rend(), const_riter); in ConstTest()