Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates > TSharedRef > operator=
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
template<typename OtherType, std::enable_if_t<(std::is_convertible_v< OtherType *, ObjectType * >), int >>
TSharedRef & operator=
(
SharedPointerInternals::TRawPtrProxy < OtherType > const & InRawPtrProxy
)
Remarks
Assignment operator replaces this shared reference with the specified shared reference. The object currently referenced by this shared reference will no longer be referenced and will be deleted if there are no other referencers. Must not be nullptr.
Parameters
Name | Description |
---|---|
InRawPtrProxy | Proxy object used to assign the object (see MakeShareable helper function) |