pub fn ensureUnusedCapacity(self: *Self, additional_count: Size) Allocator.Error!void
Increases capacity, guaranteeing that insertions up until additional_count more items will not cause an allocation, and therefore cannot fail.
additional_count
self: *Self
additional_count: Size
310 311 312
pub fn ensureUnusedCapacity(self: *Self, additional_count: Size) Allocator.Error!void { return self.unmanaged.ensureUnusedCapacityContext(self.allocator, additional_count, self.ctx); }
Increases capacity, guaranteeing that insertions up until
additional_countmore items will not cause an allocation, and therefore cannot fail.