Is there a queue class in phobos?

Trass3r un at known.com
Tue Aug 10 15:06:29 PDT 2010


> Wouldn't a regular array with a couple of free functions work?

You will get a lot of reallocations. For non-trivial applications you need  
some more sophisticated approach to alter the size of the array and maybe  
also deterministic memory management.

A queue is a commonly used technique so so it's justified to have it in  
the standard library, just like lists, heaps etc.


More information about the Digitalmars-d-learn mailing list