fn addManyAsSlice(self: *Self, allocator: Allocator, n: usize) Allocator.Error![]T

Resize the array, adding n new elements, which have undefined values. The return value is a slice pointing to the newly allocated elements. The returned pointer becomes invalid when the list is resized. Resizes list if self.capacity is not large enough.

Parameters

self: *Self,
allocator: Allocator,
n: usize,