pub fn deinit(pool: *Pool, allocator: Allocator) void
Destroys the memory pool and frees all allocated memory.
pool: *Pool
allocator: Allocator
71 72 73 74
pub fn deinit(pool: *Pool, allocator: Allocator) void { pool.arena_state.promote(allocator).deinit(); pool.* = undefined; }
Destroys the memory pool and frees all allocated memory.