Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates > API/Runtime/Core/Templates/TSharedFromThis
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include | #include "Templates/SharedPointer.h" |
bool DoesSharedInstanceExist&40;&41; const
Remarks
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).