Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates > API/Runtime/Core/Templates/TSharedFromThis > API/Runtime/Core/Templates/TSharedFromThis/AsShared
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
TSharedRef< ObjectType, Mode > AsShared&40;&41;
Remarks
Provides access to a shared reference to this object. Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. Also note that it is illegal to call this in the object's destructor. Returns this object as a shared pointer