TRawPtrProxy

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

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h

Include

#include "Templates/SharedPointerInternals.h"

Syntax

template<class ObjectType>
struct TRawPtrProxy

Remarks

Proxy structure for implicitly converting raw pointers to shared/weak pointers

Variables

Name Description

Public variable

ObjectType *...

 

Object

The object pointer

Constructors

Name Description

Public function

TRawPtrProxy

(
    TYPE_OF_NULLPTR
)

Construct implicitly from a nullptr

Public function

TRawPtrProxy

(
    ObjectType* InObject
)

Construct explicitly from an object

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