TArray::RemoveSingle

Syntax

int32 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

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h