Home | History | Annotate | Download | only in util.smartptr.shared.cast

Lines Matching refs:pA

46         const std::shared_ptr<A> pA(new A);
47 std::shared_ptr<B> pB = std::static_pointer_cast<B>(pA);
48 assert(pB.get() == pA.get());
49 assert(!pB.owner_before(pA) && !pA.owner_before(pB));
52 const std::shared_ptr<B> pA(new A);
53 std::shared_ptr<A> pB = std::static_pointer_cast<A>(pA);
54 assert(pB.get() == pA.get());
55 assert(!pB.owner_before(pA) && !pA.owner_before(pB));
58 const std::shared_ptr<A> pA;
59 std::shared_ptr<B> pB = std::static_pointer_cast<B>(pA);
60 assert(pB.get() == pA.get());
61 assert(!pB.owner_before(pA) && !pA.owner_before(pB));
64 const std::shared_ptr<B> pA;
65 std::shared_ptr<A> pB = std::static_pointer_cast<A>(pA);
66 assert(pB.get() == pA.get());
67 assert(!pB.owner_before(pA) && !pA.owner_before(pB));