DoxigAlpha

appendSlice

Append the slice of items to the list. Allocates more memory as necessary. Invalidates element pointers if additional memory is needed.

Function parameters

Parameters

#
self:*Self
items:[]const T

Deprecated.

Functions

#
Managed
Deprecated.
AlignedManaged
Deprecated.
Aligned
A contiguous, growable list of arbitrarily aligned items in memory.

Source

Implementation

#
pub fn appendSlice(self: *Self, gpa: Allocator, items: []const T) Allocator.Error!void {
    try self.ensureUnusedCapacity(gpa, items.len);
    self.appendSliceAssumeCapacity(items);
}