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

References

unittests/ADT/SmallPtrSetTest.cpp
  175   b.insert(&buf[2]);
  178   EXPECT_EQ(1U, b.size());
  183   EXPECT_FALSE(b.count(&buf[0]));
  184   EXPECT_FALSE(b.count(&buf[1]));
  185   EXPECT_TRUE(b.count(&buf[2]));
  186   EXPECT_FALSE(b.count(&buf[3]));
  188   std::swap(a, b);
  191   EXPECT_EQ(2U, b.size());
  196   EXPECT_TRUE(b.count(&buf[0]));
  197   EXPECT_TRUE(b.count(&buf[1]));
  198   EXPECT_FALSE(b.count(&buf[2]));
  199   EXPECT_FALSE(b.count(&buf[3]));
  201   b.insert(&buf[3]);
  202   std::swap(a, b);
  205   EXPECT_EQ(1U, b.size());
  210   EXPECT_FALSE(b.count(&buf[0]));
  211   EXPECT_FALSE(b.count(&buf[1]));
  212   EXPECT_TRUE(b.count(&buf[2]));
  213   EXPECT_FALSE(b.count(&buf[3]));
  215   std::swap(a, b);
  218   EXPECT_EQ(3U, b.size());
  223   EXPECT_TRUE(b.count(&buf[0]));
  224   EXPECT_TRUE(b.count(&buf[1]));
  225   EXPECT_FALSE(b.count(&buf[2]));
  226   EXPECT_TRUE(b.count(&buf[3]));
  232   std::swap(b, a);
  235   EXPECT_EQ(4U, b.size());
  236   EXPECT_TRUE(b.count(&buf[2]));
  237   EXPECT_TRUE(b.count(&buf[4]));
  238   EXPECT_TRUE(b.count(&buf[5]));
  239   EXPECT_TRUE(b.count(&buf[6]));