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

Method RemoveAll

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

Removes all occurrence of a specific object from the collection. The item to remove.

Source from the content-addressed store, hash-verified

684 /// </summary>
685 /// <param name="item">The item to remove.</param>
686 void RemoveAll(const T& item)
687 {
688 for (int32 i = Count() - 1; i >= 0; --i)
689 {
690 if (_allocation.Get()[i] == item)
691 {
692 RemoveAt(i);
693 if (IsEmpty())
694 break;
695 }
696 }
697 }
698
699 /// <summary>
700 /// Removes the item at the specified index of the collection.

Callers 3

SelectMethod · 0.45
RemoveRequestMethod · 0.45
ProfilerWindowMethod · 0.45

Calls 3

CountFunction · 0.85
IsEmptyFunction · 0.70
GetMethod · 0.45

Tested by

no test coverage detected