TUniquePtr< T[], Deleter >::Reset

Gives the [TUniquePtr](API\Runtime\Core\Templates\TUniquePtr) a new array to own, destroying any previously-owned array.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/UniquePtr.h"

Syntax

template<typename U, typename>
void Reset
(
    U * InPtr
)

Remarks

Gives the TUniquePtr a new array to own, destroying any previously-owned array.

Parameters

Parameter

Description

InPtr

A pointer to the array to take ownership of.

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