TWeakPtr::operator=

Assignment operator adds a weak reference to the object referenced by the specified weak pointer.

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>
TWeakPtr & operator=
(
    TWeakPtr< OtherType, Mode > const & InWeakPtr
)

Remarks

Assignment operator adds a weak reference to the object referenced by the specified weak pointer. This assignment operator is intended to allow derived-to-base conversions.

Parameters

Parameter

Description

InWeakPtr

The weak pointer for the object to assign

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