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>
TSharedRef
&40;
OtherType &42; InObject
&41;
Remarks
NOTE: TSharedRef has no default constructor as it does not support empty references. You must initialize your TSharedRef to a valid object at construction time. Constructs a shared reference that owns the specified object. Must not be nullptr.
Parameters
Name | Description |
---|---|
InObject | Object this shared reference to retain a reference to |