DoxigAlpha

deinit

Release all allocated memory.

Function parameters

Parameters

#

Deprecated.

Functions

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

Source

Implementation

#
pub fn deinit(self: Self) void {
    if (@sizeOf(T) > 0) {
        self.allocator.free(self.allocatedSlice());
    }
}