|
|
|
|
|
by _huayra_
431 days ago
|
|
At least in C++ land, that is not quite what is referred to as intrusive lists. It's basically the opposite / inside-out of what you wrote: ```C++
struct MyType : Node<MyType>
{
Node<MyType> next, prev;
// rest of data
};
``` I usually reach for Boost.Intrusive when I need this [0]. [0] https://www.boost.org/doc/libs/1_88_0/doc/html/intrusive/usa... |
|
The layouts look the same?