Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates > API/Runtime/Core/Templates/TSharedPtr > API/Runtime/Core/Templates/TSharedPtr/__ctor
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
template<typename OtherType, std::enable_if_t<(std::is_convertible_v< OtherType *, ObjectType * >), int >>
TSharedPtr
(
TSharedRef < OtherType, Mode > const & InSharedRef
)
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 |