Lines Matching refs:pA
37 std::shared_ptr<A> pA(new A);
38 assert(pA.use_count() == 1);
41 A* p = pA.get();
42 std::shared_ptr<A> pA2(std::move(pA));
45 assert(pA.use_count() == 0);
48 assert(pA.use_count() == 2);
54 assert(pA.use_count() == 0);
57 assert(pA.use_count() == 1);
63 std::shared_ptr<A> pA;
64 assert(pA.use_count() == 0);
67 std::shared_ptr<A> pA2(std::move(pA));
69 assert(pA.use_count() == 0);
71 assert(pA2.get() == pA.get());
73 assert(pA.use_count() == 0);