TArray::Reset

Syntax

void Reset
(
    int32 NewSize
)

Remarks

Same as empty, but doesn't change memory allocations, unless the new size is larger than the current array. It calls the destructors on held items if needed and then zeros the ArrayNum.

Parameters

Parameter

Description

NewSize

The expected usage size after calling this function.

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h