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

Method RemoveAllKeepOrder

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

Removes all occurrence of a specific object from the collection and keeps order of the items in the collection. The item to remove.

Source from the content-addressed store, hash-verified

636 /// </summary>
637 /// <param name="item">The item to remove.</param>
638 void RemoveAllKeepOrder(const T& item)
639 {
640 for (int32 i = Count() - 1; i >= 0; --i)
641 {
642 if (_allocation.Get()[i] == item)
643 {
644 RemoveAtKeepOrder(i);
645 if (IsEmpty())
646 break;
647 }
648 }
649 }
650
651 /// <summary>
652 /// Removes the item at the specified index of the collection and keeps order of the items in the collection.

Callers 1

ReadPipeFunction · 0.80

Calls 3

CountFunction · 0.85
IsEmptyFunction · 0.70
GetMethod · 0.45

Tested by

no test coverage detected