Removes the item at the specified index of the collection and keeps order of the items in the collection. The zero-based index of the item to remove.
| 653 | /// </summary> |
| 654 | /// <param name="index">The zero-based index of the item to remove.</param> |
| 655 | void RemoveAtKeepOrder(const int32 index) |
| 656 | { |
| 657 | ASSERT(index < _count && index >= 0); |
| 658 | --_count; |
| 659 | T* data = _allocation.Get(); |
| 660 | if (index < _count) |
| 661 | { |
| 662 | for (int32 i = index; i < _count; i++) |
| 663 | data[i] = MoveTemp(data[i + 1]); |
| 664 | } |
| 665 | Memory::DestructItems(data + _count, 1); |
| 666 | } |
| 667 | |
| 668 | /// <summary> |
| 669 | /// Removes the first occurrence of a specific object from the collection. |
no test coverage detected