/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Derive your class fromTSharedFromThisto enable access to aTSharedRefdirectly from an object instance that's already been allocated. Use the optional Mode template argument for thread-safety.
template<class ObjectType, ESPMode Mode> class TSharedFromThis