Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZStd::weak_ptr< T > Class Template Reference

Public Types

typedef T element_type
 

Public Member Functions

template<class Y >
 weak_ptr (weak_ptr< Y > const &r, typename AZStd::Internal::sp_enable_if_convertible< Y, T >::type=AZStd::Internal::sp_empty())
 
template<class Y >
 weak_ptr (weak_ptr< Y > &&r, typename AZStd::Internal::sp_enable_if_convertible< Y, T >::type=AZStd::Internal::sp_empty())
 
 weak_ptr (weak_ptr &&r)
 
weak_ptroperator= (weak_ptr &&r)
 
template<class Y >
 weak_ptr (shared_ptr< Y > const &r, typename AZStd::Internal::sp_enable_if_convertible< Y, T >::type=AZStd::Internal::sp_empty())
 
 weak_ptr (const this_type &r)
 
template<class Y >
weak_ptroperator= (weak_ptr< Y > const &r)
 
this_typeoperator= (const this_type &r)
 
template<class Y >
weak_ptroperator= (weak_ptr< Y > &&r)
 
template<class Y >
weak_ptroperator= (shared_ptr< Y > const &r)
 
shared_ptr< T > lock () const
 
long use_count () const
 
bool expired () const
 
bool _empty () const
 
void reset ()
 
void swap (this_type &other)
 
void _internal_assign (T *px2, AZStd::Internal::shared_count const &pn2)
 
template<class Y >
bool _internal_less (weak_ptr< Y > const &rhs) const
 

Friends

template<class Y >
class shared_ptr
 

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