TWeakPtr::TWeakPtr

Constructs a weak pointer from a shared reference

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
(
    TSharedRef< OtherType, Mode > const & InSharedRef
)

Remarks

Constructs a weak pointer from a shared reference

Parameters

Parameter

Description

InSharedRef

The shared reference to create a weak pointer from