Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates > TSharedPtr > TSharedPtr
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
template<typename OtherType, typename>
TSharedPtr
&40;
TSharedRef< OtherType, Mode > const & InSharedRef
&41;
Remarks
Implicitly converts a shared reference to a shared pointer, adding a reference to the object. NOTE: We allow an implicit conversion from TSharedRef to TSharedPtr because it's always a safe conversion.
Parameters
Name | Description |
---|---|
InSharedRef | The shared reference that will be converted to a shared pointer |