DoxigAlpha

append

Extend the list by 1 element. Allocates more memory as necessary.

Function parameters

Parameters

#
self:*Self
elem:T

A MultiArrayList stores a list of a struct or tagged union type.

Functions

#
MultiArrayList
A MultiArrayList stores a list of a struct or tagged union type.

Source

Implementation

#
pub fn append(self: *Self, gpa: Allocator, elem: T) !void {
    try self.ensureUnusedCapacity(gpa, 1);
    self.appendAssumeCapacity(elem);
}