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

References

unittests/ADT/SmallPtrSetTest.cpp
  110   s1.insert(&buf[0]);
  111   s1.insert(&buf[1]);
  112   s1.insert(&buf[2]);
  113   s1.insert(&buf[3]);
  114   EXPECT_EQ(4U, s1.size());
  117       EXPECT_TRUE(s1.count(&buf[i]));
  119       EXPECT_FALSE(s1.count(&buf[i]));
  121   SmallPtrSet<int *, 4> s2(s1);
  129   s1 = s2;
  130   EXPECT_EQ(4U, s1.size());
  134       EXPECT_TRUE(s1.count(&buf[i]));
  136       EXPECT_FALSE(s1.count(&buf[i]));
  138   SmallPtrSet<int *, 4> s3(std::move(s1));
  140   EXPECT_TRUE(s1.empty());
  153   s1 = std::move(s3);
  154   EXPECT_EQ(8U, s1.size());
  157     EXPECT_TRUE(s1.count(&buf[i]));
  160   s3 = s1;
  162   EXPECT_EQ(8U, s1.size());