Destroy the queue, deallocating all its elements.
Is the queue empty?
Insert a new item putting it to specified index in the linked list.
Are we done iterating?
Return number of elements in the queue.
Get next element in the queue.
Return the next element in the queue.
Return the next element in the queue and remove it.
Push new item to the queue.
Start iterating over the queue.
Simple queue implemented as a singly linked list with a tail pointer.
Needed in some D:YAML code that needs a queue-like structure without too much reallocation that goes with an array.
This should be replaced once Phobos has a decent queue/linked list.
Uses manual allocation through malloc/free.
Also has some features uncommon for a queue, e.g. iteration. Couldn't bother with implementing a range, as this is used only as a placeholder until Phobos gets a decent replacement.