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, typename DeleterType, std::enable_if_t<(std::is_convertible_v< OtherType *, ObjectType * >), int >>
TSharedRef
(
OtherType * InObject,
DeleterType && InDeleter
)
Remarks
Constructs a shared reference that owns the specified object. Must not be nullptr.
Parameters
Name | Description |
---|---|
InObject | Object this shared pointer to retain a reference to |
InDeleter | Deleter object used to destroy the object when it is no longer referenced. |