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

References

unittests/ADT/PointerSumTypeTest.cpp
   22                          PointerSumTypeMember<Int2, int *>>
   28         b(SumType::create<Int1>(&i1)), c(SumType::create<Int2>(&i2)), n() {}
   41   EXPECT_EQ(Int2, c.getTag());
   48   EXPECT_FALSE(a.is<Int2>());
   51   EXPECT_FALSE(b.is<Int2>());
   54   EXPECT_TRUE(c.is<Int2>());
   60   EXPECT_EQ(nullptr, a.get<Int2>());
   63   EXPECT_EQ(nullptr, b.get<Int2>());
   66   EXPECT_EQ(&i2, c.get<Int2>());
   72   EXPECT_EQ(nullptr, n.get<Int2>());
   78   EXPECT_EQ(&i2, c.cast<Int2>());
   82   b = SumType::create<Int2>(&i2);
   85   EXPECT_EQ(&i2, b.get<Int2>());
   87   b = SumType::create<Int2>(&i1);
   90   EXPECT_EQ(&i1, b.get<Int2>());
   96   EXPECT_EQ(nullptr, b.get<Int2>());
  102   EXPECT_EQ(nullptr, n.get<Int2>());
  108   EXPECT_EQ(nullptr, n.get<Int2>());