MakePimpl

Heap-allocates an instance of T with the given arguments and returns it as a [TPimplPtr](API\Runtime\Core\Templates\TPimplPtr).

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/PimplPtr.h"

Syntax

template<typename T, typename... ArgTypes>
TPimplPtr< T > MakePimpl
(
    ArgTypes &&... Args
)

Remarks

Heap-allocates an instance of T with the given arguments and returns it as a TPimplPtr.

Usage: TPimplPtr MyPtr = MakePimpl(...arguments...);

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