pub fn pushBack(deque: *Self, gpa: Allocator, item: T) error
Add one item to the back of the deque.
Invalidates element pointers if additional memory is needed.
deque: *Self
gpa: Allocator
item: T
149 150 151 152
pub fn pushBack(deque: *Self, gpa: Allocator, item: T) error{OutOfMemory}!void { try deque.ensureUnusedCapacity(gpa, 1); deque.pushBackAssumeCapacity(item); }
Add one item to the back of the deque.
Invalidates element pointers if additional memory is needed.