libstdc++
std::weak_ptr< _Tp > Class Template Reference

Inherits std::__weak_ptr< _Tp, _Lp >.

Public Types

typedef _Tp element_type

Public Member Functions

template<typename _Tp1 , typename = typename std::enable_if<std::is_convertible<_Tp1*, _Tp*>::value>::type>
 weak_ptr (const weak_ptr< _Tp1 > &__r)
template<typename _Tp1 , typename = typename std::enable_if<std::is_convertible<_Tp1*, _Tp*>::value>::type>
 weak_ptr (const shared_ptr< _Tp1 > &__r)
bool expired () const
shared_ptr< _Tp > lock () const
template<typename _Tp1 >
weak_ptroperator= (const weak_ptr< _Tp1 > &__r)
template<typename _Tp1 >
weak_ptroperator= (const shared_ptr< _Tp1 > &__r)
template<typename _Tp1 >
bool owner_before (const __shared_ptr< _Tp1, _Lp > &__rhs) const
template<typename _Tp1 >
bool owner_before (const __weak_ptr< _Tp1, _Lp > &__rhs) const
void reset ()
void swap (__weak_ptr &__s)
long use_count () const

Detailed Description

template<typename _Tp>
class std::weak_ptr< _Tp >

A smart pointer with weak semantics.

With forwarding constructors and assignment operators.

Definition at line 398 of file shared_ptr.h.


The documentation for this class was generated from the following file: