
17 Mar
2007
17 Mar
'07
12:03 a.m.
Tobias Schwinger wrote:
Anyway, I still don't understand why we can't have intrusive containers without intrusive syntax. E.g:
struct slist_node // <-- part of container implementation { T element; // note: held by value slist_node * next; };
Then there's only one allocation per 'slist_node'.
What's the difference between that and the standard (non-intrusive) containers? Regards Timmo Stange