fn ensureTotalCapacityPrecise(self: *Self, allocator: Allocator, new_capacity: usize) Allocator.Error!void
[src]
Modify the array so that it can hold new_capacity
items. Like ensureTotalCapacity
, but the resulting capacity is guaranteed to be equal to new_capacity
. Invalidates pointers if additional memory is needed.