Queue implementation based on Array.
Remove element from queue.
Non-throwing version of dequeue.
Add element to queue.
Free memory allocated by Queue.
Check if stack has no elements.
import std.exception: assertThrown; Queue!int q; assertThrown(q.dequeue()); assert (q.empty); q.enqueue(50); q.enqueue(30); q.enqueue(900); int v; q.dequeue(v); assert (v == 50); assert (q.dequeue() == 30); assert (q.dequeue() == 900); assert (q.empty); q.free();
See Implementation
Queue implementation based on Array.