Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers > API/Runtime/Core/Containers/TArray
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include | #include "Containers/Array.h" |
SizeType RemoveSingleSwap
&40;
const ElementType & Item,
bool bAllowShrinking
&41;
Remarks
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 The number of items removed. For RemoveSingleItem, this is always either 0 or 1.
Parameters
| Name | Description |
|---|---|
| Item | The item to remove |
| bAllowShrinking | Tell if this function can shrink the memory in-use if suitable. |