expandToCapacity
Increases the array's length to match the full capacity that is already allocated.
The new elements have undefined values.
Never invalidates element pointers.
Function parameters
Parameters
- self:*Self
Deprecated.
Functions
- Managed
- Deprecated.
- AlignedManaged
- Deprecated.
- Aligned
- A contiguous, growable list of arbitrarily aligned items in memory.
Source
Implementation
pub fn expandToCapacity(self: *Self) void {
self.items.len = self.capacity;
}