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