Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates > TSharedRef > TSharedRef
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 >>
TSharedRef
(
TSharedRef < OtherType, Mode > const & InSharedRef
)
Remarks
Constructs a shared reference as a reference to an existing shared reference's object. This constructor is needed so that we can implicitly upcast to base classes.
Parameters
Name | Description |
---|---|
InSharedRef | The shared reference whose object we should create an additional reference to |