• Home
  • Raw
  • Download

Lines Matching refs:weak_ptr

392     typedef weak_ptr<T> weak_type; // C++17
406 template<class Y> explicit shared_ptr(const weak_ptr<Y>& r);
437 template<class U> bool owner_before(weak_ptr<U> const& b) const;
503 class weak_ptr
509 constexpr weak_ptr() noexcept;
510 template<class Y> weak_ptr(shared_ptr<Y> const& r) noexcept;
511 weak_ptr(weak_ptr const& r) noexcept;
512 template<class Y> weak_ptr(weak_ptr<Y> const& r) noexcept;
513 weak_ptr(weak_ptr&& r) noexcept; // C++14
514 template<class Y> weak_ptr(weak_ptr<Y>&& r) noexcept; // C++14
517 ~weak_ptr();
520 weak_ptr& operator=(weak_ptr const& r) noexcept;
521 template<class Y> weak_ptr& operator=(weak_ptr<Y> const& r) noexcept;
522 template<class Y> weak_ptr& operator=(shared_ptr<Y> const& r) noexcept;
523 weak_ptr& operator=(weak_ptr&& r) noexcept; // C++14
524 template<class Y> weak_ptr& operator=(weak_ptr<Y>&& r) noexcept; // C++14
527 void swap(weak_ptr& r) noexcept;
535 template<class U> bool owner_before(weak_ptr<U> const& b) const;
538 // weak_ptr specialized algorithms:
539 template<class T> void swap(weak_ptr<T>& a, weak_ptr<T>& b) noexcept;
550 bool operator()(shared_ptr<T> const&, weak_ptr<T> const&) const;
551 bool operator()(weak_ptr<T> const&, shared_ptr<T> const&) const;
555 struct owner_less<weak_ptr<T>>
556 : binary_function<weak_ptr<T>, weak_ptr<T>, bool>
559 bool operator()(weak_ptr<T> const&, weak_ptr<T> const&) const;
560 bool operator()(shared_ptr<T> const&, weak_ptr<T> const&) const;
561 bool operator()(weak_ptr<T> const&, shared_ptr<T> const&) const;
3393 template<class _Tp> class _LIBCPP_TEMPLATE_VIS weak_ptr;
3613 typedef weak_ptr<_Tp> weak_type;
3651 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
3814 bool owner_before(weak_ptr<_Up> const& __p) const
3891 template <class _Up> friend class _LIBCPP_TEMPLATE_VIS weak_ptr;
4832 class _LIBCPP_TEMPLATE_VIS weak_ptr
4842 _LIBCPP_CONSTEXPR weak_ptr() _NOEXCEPT;
4843 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Yp> const& __r,
4847 weak_ptr(weak_ptr const& __r) _NOEXCEPT;
4848 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp> const& __r,
4854 weak_ptr(weak_ptr&& __r) _NOEXCEPT;
4855 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& __r,
4859 ~weak_ptr();
4862 weak_ptr& operator=(weak_ptr const& __r) _NOEXCEPT;
4867 weak_ptr&
4870 operator=(weak_ptr<_Yp> const& __r) _NOEXCEPT;
4875 weak_ptr& operator=(weak_ptr&& __r) _NOEXCEPT;
4880 weak_ptr&
4883 operator=(weak_ptr<_Yp>&& __r) _NOEXCEPT;
4891 weak_ptr&
4897 void swap(weak_ptr& __r) _NOEXCEPT;
4914 bool owner_before(const weak_ptr<_Up>& __r) const
4917 template <class _Up> friend class _LIBCPP_TEMPLATE_VIS weak_ptr;
4924 weak_ptr<_Tp>::weak_ptr() _NOEXCEPT
4932 weak_ptr<_Tp>::weak_ptr(weak_ptr const& __r) _NOEXCEPT
4943 weak_ptr<_Tp>::weak_ptr(shared_ptr<_Yp> const& __r,
4956 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp> const& __r,
4970 weak_ptr<_Tp>::weak_ptr(weak_ptr&& __r) _NOEXCEPT
4981 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp>&& __r,
4994 weak_ptr<_Tp>::~weak_ptr()
5002 weak_ptr<_Tp>&
5003 weak_ptr<_Tp>::operator=(weak_ptr const& __r) _NOEXCEPT
5005 weak_ptr(__r).swap(*this);
5015 weak_ptr<_Tp>&
5017 weak_ptr<_Tp>::operator=(weak_ptr<_Yp> const& __r) _NOEXCEPT
5019 weak_ptr(__r).swap(*this);
5027 weak_ptr<_Tp>&
5028 weak_ptr<_Tp>::operator=(weak_ptr&& __r) _NOEXCEPT
5030 weak_ptr(_VSTD::move(__r)).swap(*this);
5040 weak_ptr<_Tp>&
5042 weak_ptr<_Tp>::operator=(weak_ptr<_Yp>&& __r) _NOEXCEPT
5044 weak_ptr(_VSTD::move(__r)).swap(*this);
5056 weak_ptr<_Tp>&
5058 weak_ptr<_Tp>::operator=(shared_ptr<_Yp> const& __r) _NOEXCEPT
5060 weak_ptr(__r).swap(*this);
5067 weak_ptr<_Tp>::swap(weak_ptr& __r) _NOEXCEPT
5076 swap(weak_ptr<_Tp>& __x, weak_ptr<_Tp>& __y) _NOEXCEPT
5084 weak_ptr<_Tp>::reset() _NOEXCEPT
5086 weak_ptr().swap(*this);
5091 shared_ptr<_Tp>::shared_ptr(const weak_ptr<_Yp>& __r,
5102 weak_ptr<_Tp>::lock() const _NOEXCEPT
5126 bool operator()(shared_ptr<_Tp> const& __x, weak_ptr<_Tp> const& __y) const
5129 bool operator()( weak_ptr<_Tp> const& __x, shared_ptr<_Tp> const& __y) const
5134 struct _LIBCPP_TEMPLATE_VIS owner_less<weak_ptr<_Tp> >
5135 : binary_function<weak_ptr<_Tp>, weak_ptr<_Tp>, bool>
5139 bool operator()( weak_ptr<_Tp> const& __x, weak_ptr<_Tp> const& __y) const
5142 bool operator()(shared_ptr<_Tp> const& __x, weak_ptr<_Tp> const& __y) const
5145 bool operator()( weak_ptr<_Tp> const& __x, shared_ptr<_Tp> const& __y) const
5159 bool operator()( shared_ptr<_Tp> const& __x, weak_ptr<_Up> const& __y) const
5163 bool operator()( weak_ptr<_Tp> const& __x, shared_ptr<_Up> const& __y) const
5167 bool operator()( weak_ptr<_Tp> const& __x, weak_ptr<_Up> const& __y) const
5176 mutable weak_ptr<_Tp> __weak_this_;
5197 weak_ptr<_Tp> weak_from_this() _NOEXCEPT
5201 weak_ptr<const _Tp> weak_from_this() const _NOEXCEPT