Deque impl.

Timon Gehr timon.gehr at gmx.ch
Tue Jan 29 12:16:19 PST 2013


On 01/29/2013 08:55 PM, bearophile wrote:
> Robert Schadek:
>
>> I have a Deque implementation that I really like. I would like to get
>> some comments on it.
>> http://dpaste.1azy.net/4bf119e7 dpaste does not run the
>
> What's the structure of the data it keeps?
>

It's a simple growable circular queue.

> I'd like a deque implemented as a growable circular queue (implemented
> with a dynamic array) of pointers to fixed-sized chunks, plus a
> "intrusive-like" freelist that keeps some of the last removed chunks.
>
> Bye,
> bearophile



More information about the Digitalmars-d mailing list