Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include |
#include "Templates/SharedPointer.h" |
bool DoesSharedInstanceExist() const
Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). If this returns false, it means that your instance has either:
Not yet been assigned to a shared pointer (via MakeShared or MakeShareable).
Is currently within its constructor (so the shared instance isn't yet available).
Is currently within its destructor (so the shared instance is no longer available).