Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates > TSharedFromThis > SharedThis
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
template<class OtherType>
static TSharedRef< OtherType, Mode > SharedThis
&40;
OtherType &42; ThisPtr
&41;
Remarks
Provides access to a shared reference to an object, given the object's 'this' pointer. Uses the 'this' pointer to derive the object's actual type, then casts and returns an appropriately typed shared reference. Intentionally declared 'protected', as should only be called when the 'this' pointer can be passed. Returns this object as a shared pointer