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>
TSharedPtr
&40;
TSharedPtr< OtherType, Mode > const & OtherSharedPtr,
ObjectType &42; InObject
&41;
Remarks
Aliasing constructor used to create a shared pointer which shares its reference count with another shared object, but pointing to a different object, typically a subobject.
Parameters
Name | Description |
---|---|
OtherSharedPtr | The shared pointer whose reference count should be shared. |
InObject | The object pointer to use (instead of the incoming shared pointer's object) |