Hacker News new | ask | show | jobs
by chancho 5230 days ago
Boost.Intrusive does this, without the casting or offsetof'ing.

http://www.boost.org/doc/libs/1_47_0/doc/html/intrusive.html

Not that most of what you said isn't true. Just picking the nit that 'the container owns the data' holds only for the STL, not C++ in general.