cds
2.3.2
|
Container's node traits. More...
#include <cds/intrusive/details/node_traits.h>
Public Types | |
typedef T | value_type |
Value type. | |
typedef NodeType | node_type |
Node type. | |
Static Public Member Functions | |
static node_type * | to_node_ptr (value_type &v) |
Convert value reference to node pointer. | |
static node_type * | to_node_ptr (value_type *v) |
Convert value pointer to node pointer. | |
static const node_type * | to_node_ptr (value_type const &v) |
Convert value reference to node pointer (const version) | |
static const node_type * | to_node_ptr (value_type const *v) |
Convert value pointer to node pointer (const version) | |
static value_type * | to_value_ptr (node_type &n) |
Convert node refernce to value pointer. | |
static value_type * | to_value_ptr (node_type *n) |
Convert node pointer to value pointer. | |
static const value_type * | to_value_ptr (node_type const &n) |
Convert node reference to value pointer (const version) | |
static const value_type * | to_value_ptr (node_type const *n) |
Convert node pointer to value pointer (const version) | |
Container's node traits.
This traits is intended for converting between type T
of value stored in the intrusive container and container's node type NodeType
.
There are separate specializations for each Hook
type.