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

Method RemoveKeepOrder

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

Removes the first occurrence of a specific object from the collection and keeps order of the items in the collection. The item to remove. True if cannot remove item from the collection because cannot find it, otherwise false.

Source from the content-addressed store, hash-verified

623 /// <param name="item">The item to remove.</param>
624 /// <returns>True if cannot remove item from the collection because cannot find it, otherwise false.</returns>
625 bool RemoveKeepOrder(const T& item)
626 {
627 const int32 index = Find(item);
628 if (index == -1)
629 return true;
630 RemoveAtKeepOrder(index);
631 return false;
632 }
633
634 /// <summary>
635 /// Removes all occurrence of a specific object from the collection and keeps order of the items in the collection.

Callers 8

UpdateMethod · 0.80
SetParentMethod · 0.80
DeserializeMethod · 0.80
DestroyMethod · 0.80
~ManagedBinaryModuleMethod · 0.80
OnDeleteObjectMethod · 0.80
SetParentMethod · 0.80
DeserializeMethod · 0.80

Calls 1

FindFunction · 0.70

Tested by

no test coverage detected