MakeShareable

MakeShareable utility function.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/SharedPointer.h"

Syntax

template<class ObjectType, class DeleterType>
SharedPointerInternals::FRawPtrProxy< ObjectType > MakeShareable
(
    ObjectType * InObject,
    DeleterType && InDeleter
)

Remarks

MakeShareable utility function. Wrap object pointers with MakeShareable to allow them to be implicitly converted to shared pointers! This is useful in assignment operations, or when returning a shared pointer from a function.

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