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

References

unittests/ADT/PointerSumTypeTest.cpp
   21                          PointerSumTypeMember<Int1, int *>,
   28         b(SumType::create<Int1>(&i1)), c(SumType::create<Int2>(&i2)), n() {}
   40   EXPECT_EQ(Int1, b.getTag());
   47   EXPECT_FALSE(a.is<Int1>());
   50   EXPECT_TRUE(b.is<Int1>());
   53   EXPECT_FALSE(c.is<Int1>());
   59   EXPECT_EQ(nullptr, a.get<Int1>());
   62   EXPECT_EQ(&i1, b.get<Int1>());
   65   EXPECT_EQ(nullptr, c.get<Int1>());
   71   EXPECT_EQ(nullptr, n.get<Int1>());
   77   EXPECT_EQ(&i1, b.cast<Int1>());
   84   EXPECT_EQ(nullptr, b.get<Int1>());
   89   EXPECT_EQ(nullptr, b.get<Int1>());
   95   EXPECT_EQ(nullptr, b.get<Int1>());
   98   n = SumType::create<Int1>(&i2);
  101   EXPECT_EQ(&i2, n.get<Int1>());
  107   EXPECT_EQ(nullptr, n.get<Int1>());