pub fn pushSlice(self: *Self, allocator: Allocator, items: []const T) !void
Add each element in items to the dequeue.
items
self: *Self
allocator: Allocator
items: []const T
55 56 57 58 59 60
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 dequeue.