Home | History | Annotate | Download | only in Support

Lines Matching refs:cast_or_null

55     return cast_or_null<foo>(this);
128 TEST(CastingTest, cast_or_null) {
129 const foo *F11 = cast_or_null<foo>(B2);
131 const foo *F12 = cast_or_null<foo>(B2);
133 const foo *F13 = cast_or_null<foo>(B4);
135 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print.
172 //foo &F23 = cast_or_null<foo>(B1);
173 //const foo &F24 = cast_or_null<foo>(B3);
307 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MN) == nullptr);
308 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CN) == nullptr);
309 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MD) == &D);
310 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CD) == &D);