Lines Matching refs:control
287 control_block *control; member in reference_count::shared_ptr
290 shared_ptr() : p(0), control(0) {} in shared_ptr()
291 explicit shared_ptr(T *p) : p(p), control(new control_block) { in shared_ptr()
292 control->retain(); in shared_ptr()
294 shared_ptr(const shared_ptr &other) : p(other.p), control(other.control) { in shared_ptr()
295 if (control) in shared_ptr()
296 control->retain(); in shared_ptr()
299 if (control && control->release() == 0) { in ~shared_ptr()
301 delete control; in ~shared_ptr()
314 control_block *ctrlTmp = control; in swap()
315 control = other.control; in swap()
316 other.control = ctrlTmp; in swap()