TArray::RemoveSwap

Syntax

int32 RemoveSwap
(
    const ElementType & Item
)

Remarks

Removes item from the array.

This version is much more efficient, because it uses RemoveAtSwap internally which is O(Count) instead of RemoveAt which is O(ArrayNum), but does not preserve the order.

Returns

Number of elements removed.

See Also

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h