Boost logo

Boost :

From: Timmo Stange (ts_at_[hidden])
Date: 2007-03-16 20:03:02


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk