Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates > API/Runtime/Core/Templates/TSharedRef > API/Runtime/Core/Templates/TSharedRef/__ctor
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
template<typename OtherType, typename DeleterType, typename>
TSharedRef
&40;
OtherType &42; InObject,
DeleterType && InDeleter
&41;
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. |