Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SizeType RemoveSingleSwap
(
const ElementType& Item, |
Removes the first occurrence of the specified item in the array. | Containers/Array.h | |
SizeType RemoveSingleSwap
(
const ElementType& Item, |
Containers/Array.h |
RemoveSingleSwap(const ElementType &, EAllowShrinking)
Description
Removes the first occurrence of the specified item in the array. This version is much more efficient O(Count) instead of O(ArrayNum), but does not preserve the order
| Name | RemoveSingleSwap |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
SizeType RemoveSingleSwap
(
const ElementType & Item,
EAllowShrinking AllowShrinking
)
The number of items removed. For RemoveSingleItem, this is always either 0 or 1.
Parameters
| Name | Remarks |
|---|---|
| Item | The item to remove |
| AllowShrinking | Tell if this function can shrink the memory in-use if suitable. |
See Also
RemoveSingleSwap(const ElementType &, bool)
| Name | RemoveSingleSwap |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
SizeType RemoveSingleSwap
(
const ElementType & Item,
bool bAllowShrinking
)