linked list

Denis Koroskin 2korden at gmail.com
Mon Sep 27 00:47:23 PDT 2010


On Mon, 27 Sep 2010 10:27:36 +0400, Joel Christensen <joelcnz at gmail.com>  
wrote:

> Thanks for the long winded reply Jonathan.
>
> I don't know how to avoid using my own linked list, I have next/prev in  
> each class (Ball, Lazer and Mine ) in the list.
>

That's called intrusive linked list, and I find using it quite viable:
zero-allocation O(1) add/removal is a very strong characteristics.

They are very useful especially for lock-free algorithms.


More information about the Digitalmars-d-learn mailing list