Navigation
API > API/Runtime > API/Runtime/ChaosCore
Description
Remove at swap function working on an unsorted array of indices to remove. Sorting the indices in place would be an option but the complexity being O(Nlog(N)), it is probably too slow to be used for a lot of indices to remove. This algorithm requires allocating a mapping buffer to keep track of where the moved elements are and that the RemoveFunc is not modifying the original memory order
| Name | Chaos::RemoveAtSwapLambda |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/ChaosCore/Public/Chaos/ArrayCollectionArray.h |
| Include Path | #include "Chaos/ArrayCollectionArray.h" |
namespace Chaos
{
template<typename RemoveIndexFunc>
void Chaos::RemoveAtSwapLambda
(
const int32 ArraySize,
const TArrayView < int32 > & Indices,
const RemoveIndexFunc & RemoveFunc
)
}