Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/Array.h |
Include |
#include "Containers/Array.h" |
SizeType RemoveSingleSwap
(
const ElementType & Item,
bool bAllowShrinking
)
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.
Parameter |
Description |
---|---|
Item |
The item to remove |
bAllowShrinking |
Tell if this function can shrink the memory in-use if suitable. |