pub fn appendSlice(self: *Self, gpa: Allocator, items: []const T) Allocator.Error!void
Append the slice of items to the list. Allocates more memory as necessary. Invalidates element pointers if additional memory is needed.
self: *Self
gpa: Allocator
items: []const T
1105 1106 1107 1108
pub fn appendSlice(self: *Self, gpa: Allocator, items: []const T) Allocator.Error!void { try self.ensureUnusedCapacity(gpa, items.len); self.appendSliceAssumeCapacity(items); }
Append the slice of items to the list. Allocates more memory as necessary. Invalidates element pointers if additional memory is needed.