clearAndFree
Function parameters
Parameters
- self:*Self
Priority queue for storing generic data.
Functions
- PriorityQueue
- Priority queue for storing generic data.
Source
Implementation
pub fn clearAndFree(self: *Self) void {
self.allocator.free(self.allocatedSlice());
self.items.len = 0;
self.cap = 0;
}