TSharedRef::operator=

NOTE: The following is an Unreal extension to standard shared_ptr behavior.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h

Include

#include "Templates/SharedPointer.h"

Syntax

template<typename OtherType, typename>
TSharedRef & operator=
(
    SharedPointerInternals::FRawPtrProxy< 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

Parameter

Description

InRawPtrProxy

Proxy object used to assign the object (see MakeShareable helper function)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss