reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/BitVectorTest.cpp
  233   A.resize(57);
  234   A.set(12);
  235   A.set(13);
  236   A.set(47);
  238   EXPECT_EQ(47, A.find_last());
  239   EXPECT_EQ(12, A.find_first());
  240   EXPECT_EQ(13, A.find_next(12));
  241   EXPECT_EQ(47, A.find_next(13));
  242   EXPECT_EQ(-1, A.find_next(47));
  244   EXPECT_EQ(-1, A.find_prev(12));
  245   EXPECT_EQ(12, A.find_prev(13));
  246   EXPECT_EQ(13, A.find_prev(47));
  247   EXPECT_EQ(47, A.find_prev(56));
  249   EXPECT_EQ(0, A.find_first_unset());
  250   EXPECT_EQ(56, A.find_last_unset());
  251   EXPECT_EQ(14, A.find_next_unset(11));
  252   EXPECT_EQ(14, A.find_next_unset(12));
  253   EXPECT_EQ(14, A.find_next_unset(13));
  254   EXPECT_EQ(16, A.find_next_unset(15));
  255   EXPECT_EQ(48, A.find_next_unset(46));
  256   EXPECT_EQ(48, A.find_next_unset(47));
  257   EXPECT_EQ(-1, A.find_next_unset(56));