NewDelete-checker-test.cpp | 272 class shared_ptr { class in namespace:reference_count 277 shared_ptr() : p(0), control(0) {} function in class:reference_count::shared_ptr 278 explicit shared_ptr(T *p) : p(p), control(new control_block) { function in class:reference_count::shared_ptr 281 shared_ptr(shared_ptr &other) : p(other.p), control(other.control) { function in class:reference_count::shared_ptr 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 [all...] |