TArray::RemoveSingle

Removes the first occurrence of the specified item in the array, maintaining order but not indices.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

SizeType RemoveSingle
(
    const ElementType & Item
)

Remarks

Removes the first occurrence of the specified item in the array, maintaining order but not indices.

Returns

The number of items removed. For RemoveSingleItem, this is always either 0 or 1.

Parameters

Parameter

Description

Item

The item to remove.

See Also

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