Home | History | Annotate | Download | only in tr1

Lines Matching refs:__r

329         __shared_count(std::auto_ptr<_Tp>& __r)
331 _Sp_deleter<_Tp>, _Lp >(__r.get(), _Sp_deleter<_Tp>()))
332 { __r.release(); }
334 // Throw bad_weak_ptr when __r._M_get_use_count() == 0.
336 __shared_count(const __weak_count<_Lp>& __r);
344 __shared_count(const __shared_count& __r)
345 : _M_pi(__r._M_pi) // nothrow
352 operator=(const __shared_count& __r) // nothrow
354 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
367 _M_swap(__shared_count& __r) // nothrow
369 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
370 __r._M_pi = _M_pi;
409 __weak_count(const __shared_count<_Lp>& __r)
410 : _M_pi(__r._M_pi) // nothrow
416 __weak_count(const __weak_count<_Lp>& __r)
417 : _M_pi(__r._M_pi) // nothrow
430 operator=(const __shared_count<_Lp>& __r) // nothrow
432 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
442 operator=(const __weak_count<_Lp>& __r) // nothrow
444 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
454 _M_swap(__weak_count<_Lp>& __r) // nothrow
456 _Sp_counted_base<_Lp>* __tmp = __r._M_pi;
457 __r._M_pi = _M_pi;
483 __shared_count(const __weak_count<_Lp>& __r)
484 : _M_pi(__r._M_pi)
572 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r)
573 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws
578 __shared_ptr(const __weak_ptr<_Tp1, _Lp>& __r)
579 : _M_refcount(__r._M_refcount) // may throw
582 // It is now safe to copy __r._M_ptr, as _M_refcount(__r._M_refcount)
584 _M_ptr = __r._M_ptr;
588 // Postcondition: use_count() == 1 and __r.get() == 0
591 __shared_ptr(std::auto_ptr<_Tp1>& __r)
592 : _M_ptr(__r.get()), _M_refcount()
593 { // TODO requries delete __r.release() well-formed
596 _Tp1* __tmp = __r.get();
597 _M_refcount = __shared_count<_Lp>(__r);
604 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __static_cast_tag)
605 : _M_ptr(static_cast<element_type*>(__r._M_ptr)),
606 _M_refcount(__r._M_refcount)
610 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __const_cast_tag)
611 : _M_ptr(const_cast<element_type*>(__r._M_ptr)),
612 _M_refcount(__r._M_refcount)
616 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __dynamic_cast_tag)
617 : _M_ptr(dynamic_cast<element_type*>(__r._M_ptr)),
618 _M_refcount(__r._M_refcount)
626 operator=(const __shared_ptr<_Tp1, _Lp>& __r) // never throws
628 _M_ptr = __r._M_ptr;
629 _M_refcount = __r._M_refcount; // __shared_count::op= doesn't throw
636 operator=(std::auto_ptr<_Tp1>& __r)
638 __shared_ptr(__r).swap(*this);
747 * shared_ptr<_Tp, _Lp>(static_cast<_Tp*>(__r.get()))
753 static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
754 { return __shared_ptr<_Tp, _Lp>(__r, __static_cast_tag()); }
757 * shared_ptr<_Tp, _Lp>(const_cast<_Tp*>(__r.get()))
763 const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
764 { return __shared_ptr<_Tp, _Lp>(__r, __const_cast_tag()); }
767 * shared_ptr<_Tp, _Lp>(dynamic_cast<_Tp*>(__r.get()))
773 dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
774 { return __shared_ptr<_Tp, _Lp>(__r, __dynamic_cast_tag()); }
814 // __weak_ptr(const __weak_ptr<_Tp1, _Lp>& __r)
815 // : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws
820 // __r._M_ptr may already have been invalidated. The _M_ptr(__r._M_ptr)
821 // conversion may require access to *__r._M_ptr (virtual inheritance).
824 // in multithreaded programs __r._M_ptr may be invalidated at any point.
826 __weak_ptr(const __weak_ptr<_Tp1, _Lp>& __r)
827 : _M_refcount(__r._M_refcount) // never throws
830 _M_ptr = __r.lock().get();
834 __weak_ptr(const __shared_ptr<_Tp1, _Lp>& __r)
835 : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) // never throws
840 operator=(const __weak_ptr<_Tp1, _Lp>& __r) // never throws
842 _M_ptr = __r.lock().get();
843 _M_refcount = __r._M_refcount;
849 operator=(const __shared_ptr<_Tp1, _Lp>& __r) // never throws
851 _M_ptr = __r._M_ptr;
852 _M_refcount = __r._M_refcount;
1002 shared_ptr(const shared_ptr<_Tp1>& __r)
1003 : __shared_ptr<_Tp>(__r) { }
1007 shared_ptr(const weak_ptr<_Tp1>& __r)
1008 : __shared_ptr<_Tp>(__r) { }
1013 shared_ptr(std::auto_ptr<_Tp1>& __r)
1014 : __shared_ptr<_Tp>(__r) { }
1018 shared_ptr(const shared_ptr<_Tp1>& __r, __static_cast_tag)
1019 : __shared_ptr<_Tp>(__r, __static_cast_tag()) { }
1022 shared_ptr(const shared_ptr<_Tp1>& __r, __const_cast_tag)
1023 : __shared_ptr<_Tp>(__r, __const_cast_tag()) { }
1026 shared_ptr(const shared_ptr<_Tp1>& __r, __dynamic_cast_tag)
1027 : __shared_ptr<_Tp>(__r, __dynamic_cast_tag()) { }
1031 operator=(const shared_ptr<_Tp1>& __r) // never throws
1033 this->__shared_ptr<_Tp>::operator=(__r);
1040 operator=(std::auto_ptr<_Tp1>& __r)
1042 this->__shared_ptr<_Tp>::operator=(__r);
1056 static_pointer_cast(const shared_ptr<_Tp1>& __r)
1057 { return shared_ptr<_Tp>(__r, __static_cast_tag()); }
1061 const_pointer_cast(const shared_ptr<_Tp1>& __r)
1062 { return shared_ptr<_Tp>(__r, __const_cast_tag()); }
1066 dynamic_pointer_cast(const shared_ptr<_Tp1>& __r)
1067 { return shared_ptr<_Tp>(__r, __dynamic_cast_tag()); }
1081 weak_ptr(const weak_ptr<_Tp1>& __r)
1082 : __weak_ptr<_Tp>(__r) { }
1085 weak_ptr(const shared_ptr<_Tp1>& __r)
1086 : __weak_ptr<_Tp>(__r) { }
1090 operator=(const weak_ptr<_Tp1>& __r) // never throws
1092 this->__weak_ptr<_Tp>::operator=(__r);
1098 operator=(const shared_ptr<_Tp1>& __r) // never throws
1100 this->__weak_ptr<_Tp>::operator=(__r);