FIFO stack

Simen Kjaeraas simen.kjaras at gmail.com
Wed Oct 26 08:20:18 PDT 2011


On Wed, 26 Oct 2011 17:15:37 +0200, Simen Kjaeraas  
<simen.kjaras at gmail.com> wrote:

> On Wed, 26 Oct 2011 10:58:12 +0200, Dominic Jones  
> <dominic.jones at qmul.ac.uk> wrote:
>
>> Hello,
>>
>> I was looking for a FIFO stack in std.containers but only found SList
>> and Array which both appear to essentially operate as LIFO stacks. Is
>> there any standard container with which I can push items on to a list,
>> then later pop them off from the bottom of that list? If so, then how?
>
> No such thing, sorry. Though writing one should be no big challenge.
>

No such thing that is, if you don't want to use dCollections:

http://www.dsource.org/projects/dcollections

-- 
   Simen


More information about the Digitalmars-d-learn mailing list