DestructItems

Destructs a range of items in memory.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/MemoryOps.h"

Syntax

template<typename ElementType, typename SizeType>
void DestructItems
(
    ElementType * Element,
    SizeType Count
)

Remarks

Destructs a range of items in memory.

@note This function is optimized for values of T, and so will not dynamically dispatch destructor calls if T's destructor is virtual.

Parameters

Parameter

Description

Elements

A pointer to the first item to destruct.

Count

The number of elements to destruct.

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