Diligent Engine API Reference
Public Member Functions | List of all members
Diligent::RefCntWeakPtr< T > Class Template Reference

Implementation of weak pointers. More...

Public Member Functions

bool IsValid ()
 
RefCntAutoPtr< T > Lock ()
 Obtains a strong reference to the object.
 

Detailed Description

template<typename T>
class Diligent::RefCntWeakPtr< T >

Implementation of weak pointers.

Member Function Documentation

◆ IsValid()

template<typename T>
bool Diligent::RefCntWeakPtr< T >::IsValid ( )
inline
Note
This method may not be reliable in a multithreaded environment. However, when false is returned, the strong pointer created from this weak pointer will reliably be empty.