TArray::Shrink

Shrinks the array's used memory to smallest possible to store elements currently in it.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Array.h

Include

#include "Containers/Array.h"

Syntax

void Shrink()

Remarks

Shrinks the array's used memory to smallest possible to store elements currently in it.

See Also

Slack

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