MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RemoveAt

Method RemoveAt

Source/Engine/Core/Collections/Array.h:703–711  ·  view source on GitHub ↗

Removes the item at the specified index of the collection. The zero-based index of the item to remove.

Source from the content-addressed store, hash-verified

701 /// </summary>
702 /// <param name="index">The zero-based index of the item to remove.</param>
703 void RemoveAt(const int32 index)
704 {
705 ASSERT(index < _count && index >= 0);
706 --_count;
707 T* data = _allocation.Get();
708 if (_count)
709 data[index] = MoveTemp(data[_count]);
710 Memory::DestructItems(data + _count, 1);
711 }
712
713 /// <summary>
714 /// Removes the last items from the collection.

Callers 15

AllocateMethod · 0.45
StopMethod · 0.45
DespawnObjectMethod · 0.45
OnUpdateMethod · 0.45
OnEmitterUnloadMethod · 0.45
PostExecuteMethod · 0.45
RemoveGoalMethod · 0.45
FlushMethod · 0.45
ReleaseUnusedMemoryMethod · 0.45

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected