Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers > API/Runtime/Core/Containers/TIndirectArray > API/Runtime/Core/Containers/TIndirectArray/RemoveAtSwap
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/IndirectArray.h |
| Include | #include "Containers/IndirectArray.h" |
void RemoveAtSwap
(
int32 Index,
EAllowShrinking AllowShrinking
)
Remarks
Removes an element 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.
Parameters
| Name | Description |
|---|---|
| Index | Location in array of the element to remove. |
| AllowShrinking | (Optional) Tells if this call can shrink array if suitable after remove. Default is yes. |