Home | History | Annotate | Download | only in bits

Lines Matching defs:weak_ptr

1 // shared_ptr and weak_ptr implementation -*- C++ -*-
34 // weak_ptr.hpp
242 * @param __r A weak_ptr.
248 explicit shared_ptr(const weak_ptr<_Tp1>& __r)
323 // This constructor is non-standard, it is used by weak_ptr::lock().
324 shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
327 friend class weak_ptr<_Tp>;
467 class weak_ptr : public __weak_ptr<_Tp>
470 constexpr weak_ptr() noexcept
475 weak_ptr(const weak_ptr<_Tp1>& __r) noexcept
480 weak_ptr(const shared_ptr<_Tp1>& __r) noexcept
484 weak_ptr&
485 operator=(const weak_ptr<_Tp1>& __r) noexcept
492 weak_ptr&
504 // 20.7.2.3.6 weak_ptr specialized algorithms.
507 swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept
518 : public _Sp_owner_less<shared_ptr<_Tp>, weak_ptr<_Tp>>
521 weak_ptr.
523 struct owner_less<weak_ptr<_Tp>>
524 : public _Sp_owner_less<weak_ptr<_Tp>, shared_ptr<_Tp>>
569 mutable weak_ptr<_Tp> _M_weak_this;