Home | History | Annotate | Download | only in util.smartptr.weak.const

Lines Matching refs:pA

65         const std::weak_ptr<A> pA(ps);
66 assert(pA.use_count() == 1);
70 std::weak_ptr<A> pB(pA);
74 assert(pA.use_count() == 1);
76 assert(pA.use_count() == 1);
83 std::weak_ptr<A> pA;
84 assert(pA.use_count() == 0);
88 std::weak_ptr<A> pB(pA);
92 assert(pA.use_count() == 0);
94 assert(pA.use_count() == 0);
103 std::weak_ptr<A> pA = source(ps);
104 assert(pA.use_count() == 1);
106 sink(std::move(pA)); // kill off the weak pointer