Home | History | Annotate | Download | only in tr1

Lines Matching refs:__r

336         __shared_count(std::auto_ptr<_Tp>& __r)
338 _Sp_deleter<_Tp>, _Lp >(__r.get(), _Sp_deleter<_Tp>()))
339 { __r.release(); }
341 // Throw bad_weak_ptr when __r._M_get_use_count() == 0.
343 __shared_count(const __weak_count<_Lp>& __r);
351 __shared_count(const __shared_count& __r)
352 : _M_pi(__r._M_pi) // nothrow
359 operator=(const __shared_count& __r) // nothrow
361 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
374 _M_swap(__shared_count& __r) // nothrow
376 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
377 __r._M_pi = _M_pi;
416 __weak_count(const __shared_count<_Lp>& __r)
417 : _M_pi(__r._M_pi) // nothrow
423 __weak_count(const __weak_count<_Lp>& __r)
424 : _M_pi(__r._M_pi) // nothrow
437 operator=(const __shared_count<_Lp>& __r) // nothrow
439 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
449 operator=(const __weak_count<_Lp>& __r) // nothrow
451 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
461 _M_swap(__weak_count<_Lp>& __r) // nothrow
463 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
464 __r._M_pi = _M_pi;
490 __shared_count(const __weak_count<_Lp>& __r)
491 : _M_pi(__r._M_pi)
579 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r)
580 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws
585 __shared_ptr(const __weak_ptr<_Tp1, _Lp>& __r)
586 : _M_refcount(__r._M_refcount) // may throw
589 // It is now safe to copy __r._M_ptr, as _M_refcount(__r._M_refcount)
591 _M_ptr = __r._M_ptr;
595 // Postcondition: use_count() == 1 and __r.get() == 0
598 __shared_ptr(std::auto_ptr<_Tp1>& __r)
599 : _M_ptr(__r.get()), _M_refcount()
600 { // TODO requries delete __r.release() well-formed
603 _Tp1* __tmp = __r.get();
604 _M_refcount = __shared_count<_Lp>(__r);
611 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __static_cast_tag)
612 : _M_ptr(static_cast<element_type*>(__r._M_ptr)),
613 _M_refcount(__r._M_refcount)
617 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __const_cast_tag)
618 : _M_ptr(const_cast<element_type*>(__r._M_ptr)),
619 _M_refcount(__r._M_refcount)
623 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __dynamic_cast_tag)
624 : _M_ptr(dynamic_cast<element_type*>(__r._M_ptr)),
625 _M_refcount(__r._M_refcount)
633 operator=(const __shared_ptr<_Tp1, _Lp>& __r) // never throws
635 _M_ptr = __r._M_ptr;
636 _M_refcount = __r._M_refcount; // __shared_count::op= doesn't throw
643 operator=(std::auto_ptr<_Tp1>& __r)
645 __shared_ptr(__r).swap(*this);
754 * shared_ptr<_Tp, _Lp>(static_cast<_Tp*>(__r.get()))
760 static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
761 { return __shared_ptr<_Tp, _Lp>(__r, __static_cast_tag()); }
764 * shared_ptr<_Tp, _Lp>(const_cast<_Tp*>(__r.get()))
770 const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
771 { return __shared_ptr<_Tp, _Lp>(__r, __const_cast_tag()); }
774 * shared_ptr<_Tp, _Lp>(dynamic_cast<_Tp*>(__r.get()))
780 dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
781 { return __shared_ptr<_Tp, _Lp>(__r, __dynamic_cast_tag()); }
821 // __weak_ptr(const __weak_ptr<_Tp1, _Lp>& __r)
822 // : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws
827 // __r._M_ptr may already have been invalidated. The _M_ptr(__r._M_ptr)
828 // conversion may require access to *__r._M_ptr (virtual inheritance).
831 // in multithreaded programs __r._M_ptr may be invalidated at any point.
833 __weak_ptr(const __weak_ptr<_Tp1, _Lp>& __r)
834 : _M_refcount(__r._M_refcount) // never throws
837 _M_ptr = __r.lock().get();
841 __weak_ptr(const __shared_ptr<_Tp1, _Lp>& __r)
842 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws
847 operator=(const __weak_ptr<_Tp1, _Lp>& __r) // never throws
849 _M_ptr = __r.lock().get();
850 _M_refcount = __r._M_refcount;
856 operator=(const __shared_ptr<_Tp1, _Lp>& __r) // never throws
858 _M_ptr = __r._M_ptr;
859 _M_refcount = __r._M_refcount;
1009 shared_ptr(const shared_ptr<_Tp1>& __r)
1010 : __shared_ptr<_Tp>(__r) { }
1014 shared_ptr(const weak_ptr<_Tp1>& __r)
1015 : __shared_ptr<_Tp>(__r) { }
1020 shared_ptr(std::auto_ptr<_Tp1>& __r)
1021 : __shared_ptr<_Tp>(__r) { }
1025 shared_ptr(const shared_ptr<_Tp1>& __r, __static_cast_tag)
1026 : __shared_ptr<_Tp>(__r, __static_cast_tag()) { }
1029 shared_ptr(const shared_ptr<_Tp1>& __r, __const_cast_tag)
1030 : __shared_ptr<_Tp>(__r, __const_cast_tag()) { }
1033 shared_ptr(const shared_ptr<_Tp1>& __r, __dynamic_cast_tag)
1034 : __shared_ptr<_Tp>(__r, __dynamic_cast_tag()) { }
1038 operator=(const shared_ptr<_Tp1>& __r) // never throws
1040 this->__shared_ptr<_Tp>::operator=(__r);
1047 operator=(std::auto_ptr<_Tp1>& __r)
1049 this->__shared_ptr<_Tp>::operator=(__r);
1063 static_pointer_cast(const shared_ptr<_Tp1>& __r)
1064 { return shared_ptr<_Tp>(__r, __static_cast_tag()); }
1068 const_pointer_cast(const shared_ptr<_Tp1>& __r)
1069 { return shared_ptr<_Tp>(__r, __const_cast_tag()); }
1073 dynamic_pointer_cast(const shared_ptr<_Tp1>& __r)
1074 { return shared_ptr<_Tp>(__r, __dynamic_cast_tag()); }
1088 weak_ptr(const weak_ptr<_Tp1>& __r)
1089 : __weak_ptr<_Tp>(__r) { }
1092 weak_ptr(const shared_ptr<_Tp1>& __r)
1093 : __weak_ptr<_Tp>(__r) { }
1097 operator=(const weak_ptr<_Tp1>& __r) // never throws
1099 this->__weak_ptr<_Tp>::operator=(__r);
1105 operator=(const shared_ptr<_Tp1>& __r) // never throws
1107 this->__weak_ptr<_Tp>::operator=(__r);