Removes all items from the queue.
Tells whether the queue is empty.
Pops an element from the queue and returns a pointer to that element. The value of the element must then be copied from the location pointed to before calling push() or pop() the next time.
Reserves space for an element of the size T.sizeof at the queue and returns a pointer to it. The value of the element must then be copied to the location pointed to before calling push() or pop() the next time.
Pushes an element into the queue.
Shifts lefts currently used slots of the underlying array to optimize memory usage.
Finds out whether the provided number of bytes will fit in the queue.
When set to 'true`, will automatically shift all items in the underlying array to utilize freed space. It is a recommended default.
auto queue = new DynamicQueue!(int); queue.push(1); queue.push(2); queue.push(3); test!("==")(*queue.pop(), 1); test!("==")(*queue.pop(), 2); test!("==")(*queue.pop(), 3);
ditto