TSharedPtr::operator=

Assignment operator replaces this shared pointer with the specified shared pointer.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/SharedPointer.h"

Syntax

TSharedPtr & operator=
(
    TSharedPtr const & InSharedPtr
)

Remarks

Assignment operator replaces this shared pointer with the specified shared pointer. The object currently referenced by this shared pointer will no longer be referenced and will be deleted if there are no other referencers.

Parameters

Parameter

Description

InSharedPtr

Shared pointer to replace with

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