Statically allocated core of a double linked list, pointers to next, previous.
More...
Statically allocated core of a double linked list, pointers to next, previous.
This is the simplest list node, used as base class for other list nodes and as storage for static_double_list, that must be available for any statically constructed objects while still avoiding the 'static initialisation order fiasco'.
The idea is to design the object in such a way as to benefit from the standard BSS initialisation, in other words take nullptr
as starting values.
Definition at line 48 of file lists.h.
void os::utils::static_double_list_links::unlink |
( |
void |
| ) |
|
Remove the node from the list.
- Returns
- Nothing.
Update the neighbours to point to each other, skipping the node.
For more robustness, to prevent unexpected accesses, the links in the removed node are nullified.
Definition at line 57 of file lists.cpp.