Home | History | Annotate | Download | only in Analysis

Lines Matching defs:shared_ptr

221   class shared_ptr {
226 shared_ptr() : p(0), control(0) {}
227 explicit shared_ptr(T *p) : p(p), control(new control_block) {
230 shared_ptr(shared_ptr &other) : p(other.p), control(other.control) {
234 ~shared_ptr() {
245 void swap(shared_ptr &other) {
257 shared_ptr<int> a(new int);
262 shared_ptr<int> a(new int);
263 shared_ptr<int> b = a;
268 shared_ptr<int> a(new int);
269 shared_ptr<int> b = a;
272 extern void use(shared_ptr<int> &);
277 shared_ptr<int> a(new int);
279 shared_ptr<int> b = a;
285 shared_ptr<int> a(new int);
286 shared_ptr<int> b;
287 shared_ptr<int> c = a;
288 shared_ptr<int>(c).swap(b);
294 shared_ptr<int> a(p);
295 shared_ptr<int> b = a;
299 // conservatively modeled ~shared_ptr.