Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSharedFromThis
Description
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).
| Name | DoesSharedInstanceExist |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
bool DoesSharedInstanceExist() const