Containers I'd like to see in std.containers

Philippe Sigaud philippe.sigaud at gmail.com
Mon May 31 12:36:42 PDT 2010


Simen & Marianne too:

>
> There are other concerns than simply what works. First of all is
> readability - having containers called queue and stack makes code easier
> to understand, even if this is done with a simple alias.
> There might also be a concern about efficiency, as there is a difference
> in how fast different containers can push and pop.
>
> --
> Simen
>

Yeah, particularly if having both stack and queue just costs one alias. I
mean, it's a standard library. I know I can use built-in arrays (for
example) as stacks and queues, but sometimes I just want to have a stack.

Initially in my mind, that was just to make some graph algorithms clearer.


  Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100531/cbd67c25/attachment.html>


More information about the Digitalmars-d mailing list