TWeakPtr::operator=

Assignment operator sets this weak pointer from a shared pointer

Choose your operating system:

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=
(
    TSharedPtr< OtherType, Mode > const & InSharedPtr
)

Remarks

Assignment operator sets this weak pointer from a shared pointer

Parameters

Parameter

Description

InSharedPtr

The shared pointer used to assign to this weak pointer