TSharedRef::TSharedRef

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>
TSharedRef
(
    SharedPointerInternals::FRawPtrProxy< OtherType > const & InRawPtrProxy
)

Remarks

Constructs a shared reference using a proxy reference to a raw pointer. (See MakeShareable()) Must not be nullptr.

Parameters

Parameter

Description

InRawPtrProxy

Proxy raw pointer that contains the object that the new shared reference will reference

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