FIFO stack
Marco Leise
Marco.Leise at gmx.de
Wed Oct 26 08:49:14 PDT 2011
Am 26.10.2011, 17:20 Uhr, schrieb Simen Kjaeraas <simen.kjaras at gmail.com>:
> 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
Also an plain array is a good stack. :)
More information about the Digitalmars-d-learn
mailing list