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)
398 class weak_ptr : public __weak_ptr<_Tp>
401 constexpr weak_ptr()
406 weak_ptr(const weak_ptr<_Tp1>& __r)
411 weak_ptr(const shared_ptr<_Tp1>& __r)
415 weak_ptr&
416 operator=(const weak_ptr<_Tp1>& __r) // never throws
423 weak_ptr&
451 // 20.8.13.3.7 weak_ptr specialized algorithms.
454 swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b)
465 : public _Sp_owner_less<shared_ptr<_Tp>, weak_ptr<_Tp>>
468 /// Partial specialization of owner_less for weak_ptr.
470 struct owner_less<weak_ptr<_Tp>>
471 : public _Sp_owner_less<weak_ptr<_Tp>, shared_ptr<_Tp>>
516 mutable weak_ptr<_Tp> _M_weak_this;