pub fn pushSlice(self: *Self, allocator: Allocator, items: []const T) !void
Add each element in items to the queue.
items
self: *Self
allocator: Allocator
items: []const T
73 74 75 76 77 78
pub fn pushSlice(self: *Self, allocator: Allocator, items: []const T) !void { try self.ensureUnusedCapacity(allocator, items.len); for (items) |e| { self.pushUnchecked(e); } }
Add each element in
itemsto the queue.