Home | History | Annotate | Download | only in Analysis

Lines Matching defs:shared_ptr

272   class shared_ptr {
277 shared_ptr() : p(0), control(0) {}
278 explicit shared_ptr(T *p) : p(p), control(new control_block) {
281 shared_ptr(shared_ptr &other) : p(other.p), control(other.control) {
285 ~shared_ptr() {
296 void swap(shared_ptr &other) {
308 shared_ptr<int> a(new int);
313 shared_ptr<int> a(new int);
314 shared_ptr<int> b = a;
319 shared_ptr<int> a(new int);
320 shared_ptr<int> b = a;
323 extern void use(shared_ptr<int> &);
328 shared_ptr<int> a(new int);
330 shared_ptr<int> b = a;
336 shared_ptr<int> a(new int);
337 shared_ptr<int> b;
338 shared_ptr<int> c = a;
339 shared_ptr<int>(c).swap(b);
345 shared_ptr<int> a(p);
346 shared_ptr<int> b = a;
350 // conservatively modeled ~shared_ptr.