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

Lines Matching refs:pB

50             std::shared_ptr<B> pB(new B);
51 pB = std::move(pA);
54 assert(pB.use_count() == 1);
57 assert(pB.get() == ptrA);
69 std::shared_ptr<B> pB(new B);
70 pB = std::move(pA);
73 assert(pB.use_count() == 0);
76 assert(pB.get() == ptrA);
88 std::shared_ptr<B> pB;
89 pB = std::move(pA);
92 assert(pB.use_count() == 1);
95 assert(pB.get() == ptrA);
107 std::shared_ptr<B> pB;
108 pB = std::move(pA);
111 assert(pB.use_count() == 0);
114 assert(pB.get() == ptrA);