TUniquePtr::Reset

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/UniquePtr.h"

Syntax

void Reset
(
    T * InPtr
)

Remarks

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

Parameters

Parameter

Description

InPtr

A pointer to the object 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