DoxigAlpha

clearAndFree

Function parameters

Parameters

#
self:*Self

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 clearAndFree(self: *Self, gpa: Allocator) void {
    gpa.free(self.allocatedBytes());
    self.* = .{};
}