Lines Matching refs:pA
33 std::shared_ptr<A> pA(new A);
34 assert(pA.use_count() == 1);
37 std::shared_ptr<A> pA2(pA);
39 assert(pA.use_count() == 2);
41 assert(pA2.get() == pA.get());
43 assert(pA.use_count() == 1);
48 std::shared_ptr<A> pA;
49 assert(pA.use_count() == 0);
52 std::shared_ptr<A> pA2(pA);
54 assert(pA.use_count() == 0);
56 assert(pA2.get() == pA.get());
58 assert(pA.use_count() == 0);