Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/TSPtrArrayG
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE void RemoveAtSwap
(
int32_t Index |
Removes an element (or elements) at given location optionally shrinking the array. | uLang/Common/Containers/SharedPointerArray.h | |
ULANG_FORCEINLINE void RemoveAtSwap
(
int32_t Index, |
Removes an element (or elements) at given location optionally shrinking the array. | uLang/Common/Containers/SharedPointerArray.h |
RemoveAtSwap(int32_t)
Description
Removes an element (or elements) at given location optionally shrinking the array.
This version is much more efficient than RemoveAt (O(Count) instead of O(ArrayNum)), but does not preserve the order.
| Name | RemoveAtSwap |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointerArray.h |
| Include Path | #include "uLang/Common/Containers/SharedPointerArray.h" |
ULANG_FORCEINLINE void RemoveAtSwap
(
int32_t Index
)
Parameters
| Name | Remarks |
|---|---|
| Index | Location in array of the element to remove. |
| Count | (Optional) Number of elements to remove. Default is 1. |
| bAllowShrinking | (Optional) Tells if this call can shrink array if suitable after remove. Default is true. |
RemoveAtSwap(int32_t, CountType, bool)
Description
Removes an element (or elements) at given location optionally shrinking the array.
This version is much more efficient than RemoveAt (O(Count) instead of O(ArrayNum)), but does not preserve the order.
| Name | RemoveAtSwap |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointerArray.h |
| Include Path | #include "uLang/Common/Containers/SharedPointerArray.h" |
template<typename CountType>
ULANG_FORCEINLINE void RemoveAtSwap
(
int32_t Index,
CountType Count,
bool bAllowShrinking
)
Parameters
| Name | Remarks |
|---|---|
| Index | Location in array of the element to remove. |
| Count | (Optional) Number of elements to remove. Default is 1. |
| bAllowShrinking | (Optional) Tells if this call can shrink array if suitable after remove. Default is true. |