Derive a class from slist_base_hook in order to store objects in in an list. More...
#include <slist_hook.hpp>
Derive a class from slist_base_hook in order to store objects in in an list.
slist_base_hook holds the data necessary to maintain the list and provides an appropriate value_traits class for list.
The hook admits the following options: tag<>
, void_pointer<>
and link_mode<>
.
tag<>
defines a tag to identify the node. The same tag value can be used in different classes, but if a class is derived from more than one list_base_hook
, then each list_base_hook
needs its unique tag.
link_mode<>
will specify the linking mode of the hook (normal_link
, auto_unlink
or safe_link
).
void_pointer<>
is the pointer type that will be used internally in the hook and the container configured to use this hook.