Function deinit [src]

Deinitializes the array and releases its memory. The passed allocator must be the same one used for init* or resize in the past.

Prototype

pub fn deinit(self: *Self, allocator: Allocator) void

Parameters

self: *Selfallocator: Allocator

Source

pub fn deinit(self: *Self, allocator: Allocator) void { self.resize(allocator, 0, false) catch unreachable; }