TWeakPtr::TWeakPtr

Constructs a weak pointer from a weak pointer of another type.

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

Remarks

Constructs a weak pointer from a weak pointer of another type. This constructor is intended to allow derived-to-base conversions.

Parameters

Parameter

Description

InWeakPtr

The weak pointer to create a weak pointer from