News for hackers. Stuff that matters.
Re:Avoiding game crashes related to linked lists by huhtenberg on Monday September 10, 2012 @03:39AM (#4498732)
THE reason to use "intrusive" containers is to let a piece of data to sit in multiple containers, none of which is primary. I'll give you an skbuff and you show me how to put it on several linked lists and a couple of hashmaps with STL-style containers.
Re:Avoiding game crashes related to linked lists by shrughes on Monday September 10, 2012 @09:17AM (#4499578)
That's not the only reason. Another is simplicity.
Re:Avoiding game crashes related to linked lists by morsch on Monday September 10, 2012 @06:33AM (#4499098)
Store multiple pointers to the same datum?
Re:Avoiding game crashes related to linked lists by gsg on Monday September 10, 2012 @11:09AM (#4500174)
Then for deletion you need to traverse every data structure in which you store said pointers.