Home | History | Annotate | Download | only in tr1

Lines Matching refs:__shared_ptr

306     class __shared_ptr;
350 * @class __shared_ptr
357 class __shared_ptr
362 /** @brief Construct an empty %__shared_ptr.
365 __shared_ptr()
369 /** @brief Construct a %__shared_ptr that owns the pointer @a __p.
376 __shared_ptr(_Tp1* __p)
388 // __shared_ptr will release __p by calling __d(__p)
390 /** @brief Construct a %__shared_ptr that owns the pointer @a __p
398 __shared_ptr(_Tp1* __p, _Deleter __d)
408 /** @brief If @a __r is empty, constructs an empty %__shared_ptr;
409 * otherwise construct a %__shared_ptr that shares ownership
411 * @param __r A %__shared_ptr.
415 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r)
419 /** @brief Constructs a %__shared_ptr that shares ownership with @a __r
428 __shared_ptr(const __weak_ptr<_Tp1, _Lp>& __r)
443 __shared_ptr(std::auto_ptr<_Tp1>& __r)
456 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __static_cast_tag)
462 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __const_cast_tag)
468 __shared_ptr(const __shared_ptr<_Tp1, _Lp>& __r, __dynamic_cast_tag)
477 __shared_ptr&
478 operator=(const __shared_ptr<_Tp1, _Lp>& __r) // never throws
487 __shared_ptr&
490 __shared_ptr(__r).swap(*this);
497 { __shared_ptr().swap(*this); }
505 __shared_ptr(__p).swap(*this);
511 { __shared_ptr(__p, __d).swap(*this); }
534 typedef _Tp* __shared_ptr::*__unspecified_bool_type;
538 { return _M_ptr == 0 ? 0 : &__shared_ptr::_M_ptr; }
549 swap(__shared_ptr<_Tp, _Lp>& __other) // never throws
562 _M_less(const __shared_ptr<_Tp1, _Lp1>& __rhs) const
565 template<typename _Tp1, _Lock_policy _Lp1> friend class __shared_ptr;
569 friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&);
574 operator==(const __shared_ptr__shared_ptr<_Tp1, _Lp>& __b)
579 operator!=(const __shared_ptr& __a, const __shared_ptr<_Tp1, _Lp>& __b)
584 operator<(const __shared_ptr& __a, const __shared_ptr<_Tp1, _Lp>& __b)
594 swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b)
604 inline __shared_ptr<_Tp, _Lp>
605 static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
606 { return __shared_ptr<_Tp, _Lp>(__r, __static_cast_tag()); }
614 inline __shared_ptr<_Tp, _Lp>
615 const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
616 { return __shared_ptr<_Tp, _Lp>(__r, __const_cast_tag()); }
624 inline __shared_ptr<_Tp, _Lp>
625 dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r)
626 { return __shared_ptr<_Tp, _Lp>(__r, __dynamic_cast_tag()); }
632 const __shared_ptr<_Tp, _Lp>& __p)
641 get_deleter(const __shared_ptr<_Tp, _Lp>& __p)
680 __weak_ptr(const __shared_ptr<_Tp1, _Lp>& __r)
695 operator=(const __shared_ptr<_Tp1, _Lp>& __r) // never throws
702 __shared_ptr<_Tp, _Lp>
708 return __shared_ptr<element_type, _Lp>();
712 return __shared_ptr<element_type, _Lp>(*this);
719 return __shared_ptr<element_type, _Lp>();
724 return expired() ? __shared_ptr<element_type, _Lp>()
725 : __shared_ptr<element_type, _Lp>(*this);
763 template<typename _Tp1, _Lock_policy _Lp1> friend class __shared_ptr;
800 __shared_ptr<_Tp, _Lp>
802 { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); }
804 __shared_ptr<const _Tp, _Lp>
806 { return __shared_ptr<const _Tp, _Lp>(this->_M_weak_this); }
833 : public __shared_ptr<_Tp>
837 : __shared_ptr<_Tp>() { }
842 : __shared_ptr<_Tp>(__p) { }
846 : __shared_ptr<_Tp>(__p, __d) { }
850 : __shared_ptr<_Tp>(__r) { }
855 : __shared_ptr<_Tp>(__r) { }
861 : __shared_ptr<_Tp>(__r) { }
866 : __shared_ptr<_Tp>(__r, __static_cast_tag()) { }
870 : __shared_ptr<_Tp>(__r, __const_cast_tag()) { }
874 : __shared_ptr<_Tp>(__r, __dynamic_cast_tag()) { }
880 this->__shared_ptr<_Tp>::operator=(__r);
889 this->__shared_ptr<_Tp>::operator=(__r);
898 swap(__shared_ptr<_Tp>& __a, __shared_ptr<_Tp>& __b)