TUniquePtr::Release

Relinquishes control of the owned object to the caller and nulls the [TUniquePtr](API\Runtime\Core\Templates\TUniquePtr).

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/UniquePtr.h"

Syntax

T * Release()

Remarks

Relinquishes control of the owned object to the caller and nulls the TUniquePtr.

Returns

The pointer to the object that was owned by the TUniquePtr, or nullptr if no object was being owned.

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