TSharedPtr::TSharedPtr

NOTE: The following is an Unreal extension to standard shared_ptr behavior.

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

Remarks

Implicitly converts a shared reference to a shared pointer, adding a reference to the object. NOTE: We allow an implicit conversion from TSharedRef to TSharedPtr because it's always a safe conversion.

Parameters

Parameter

Description

InSharedRef

The shared reference that will be converted to a shared pointer

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