Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/TSPtrArrayG
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/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointerArray.h |
| Include Path | #include "uLang/Common/Containers/SharedPointerArray.h" |
int32_t RemoveSingleSwap
(
const PointerType & Item,
bool bAllowShrinking
)
The number of items removed. For RemoveSingleItem, this is always either 0 or 1.
Parameters
| Name | Remarks |
|---|---|
| Item | The item to remove |
See Also
-
Insert
-
RemoveSwap