Doubly-indexed queue, can be used as a FIFO or stack.
Create a QueueImpl with specified initial capacity.
Adds an item on the back of the queue.
Adds an item on the front of the queue.
Removes an item from the front of the queue.
Removes an item from the back of the queue.
Removes all items from the queue.
A queue that can only grow.
A fixed-sized queue that will crash on overflow.
Ring buffer, it drops if its capacity is exceeded.