pub fn pushBackSlice(deque: *Self, gpa: Allocator, items: []const T) error
Add items to the back of the deque. This is equivalent to iterating items in order and calling pushBack on every single entry.
items
pushBack
Invalidates element pointers if additional memory is needed.
deque: *Self
gpa: Allocator
items: []const T
225 226 227 228
pub fn pushBackSlice(deque: *Self, gpa: Allocator, items: []const T) error{OutOfMemory}!void { try deque.ensureUnusedCapacity(gpa, items.len); return deque.pushBackSliceAssumeCapacity(items); }
Add
itemsto the back of the deque. This is equivalent to iteratingitemsin order and callingpushBackon every single entry.Invalidates element pointers if additional memory is needed.