TWeakPtr::TWeakPtr

Constructs a 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
(
    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