Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSharedFromThis
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< ObjectType, Mode > AsShared () |
Provides a shared reference to this object. | Templates/SharedPointer.h | |
TSharedRef< ObjectType const, Mode > AsShared () |
Provides a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. | Templates/SharedPointer.h |
AsShared()
Description
Provides 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.
| Name | AsShared |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TSharedRef < ObjectType, Mode > AsShared()
Returns this object as a shared reference
AsShared()
Description
Provides a shared reference to this object (const.) 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.
| Name | AsShared |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TSharedRef < ObjectType const, Mode > AsShared() const
Returns this object as a shared reference (const)