Import with #import "std/pool".
PoolHandle :: struct { index: s32; generation: u32; }Pool :: struct($T: Type) { items: Vec(T); generations: Vec(u32); occupied: Vec(u8); free_list: Vec(s32); live_count: s64; }PoolValid :: (pool: *Pool($T), handle: PoolHandle) -> boolPoolAlloc :: (pool: *Pool($T), value: T) -> PoolHandlePoolGet :: (pool: *Pool($T), handle: PoolHandle, out: *T) -> boolPoolGetMut :: (pool: *Pool($T), handle: PoolHandle) -> *TPoolFree :: (pool: *Pool($T), handle: PoolHandle) -> boolPoolLiveCount :: (pool: *Pool($T)) -> s64