DoxigAlpha

orderedRemove

Remove the element at index i from the list and return its value. Invalidates pointers to the last element. This operation is O(N). Asserts that the index is in bounds.

Function parameters

Parameters

#
self:*Self
i:usize

Deprecated.

Functions

#
Managed
Deprecated.
AlignedManaged
Deprecated.
Aligned
A contiguous, growable list of arbitrarily aligned items in memory.

Source

Implementation

#
pub fn orderedRemove(self: *Self, i: usize) T {
    const old_item = self.items[i];
    self.replaceRangeAssumeCapacity(i, 1, &.{});
    return old_item;
}