Boost logo

Boost :

From: Eric Zijlstra (ezijlstra_at_[hidden])
Date: 2005-05-03 21:22:54


"Marcin Kaliciñski" <kalita_at_[hidden]> wrote in message
news:d53ven$q88$1_at_sea.gmane.org...
> > struct Link
> > {
> > Link* prev, next;
> > };
> Intrusive containers also have several other advantages:
> - adding object into container does not require making copies
> - one object can be in more than one intrusive container at once

I would like to add that it's also possible to remove an object without
knowning the container it's in, sometimes that's an advantage. Also when
deleting an object it's not required to first explicitly remove it from the
list, ~Link() can handle this.


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