TWeakPtr::TWeakPtr

Constructs a weak pointer from a shared 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
(
    TSharedPtr< OtherType, Mode > const & InSharedPtr
)

Remarks

Constructs a weak pointer from a shared pointer

Parameters

Parameter

Description

InSharedPtr

The shared pointer to create a weak pointer from

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