Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates > TSharedPtr > TSharedPtr
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
template<typename OtherType, typename>
TSharedPtr
&40;
OtherType &42; InObject
&41;
Remarks
Constructs a shared pointer that owns the specified object. Note that passing nullptr here will still create a tracked reference to a nullptr pointer. (Consistent with std::shared_ptr)
Parameters
Name | Description |
---|---|
InObject | Object this shared pointer to retain a reference to |