41#ifndef PB_DS_RB_TREE_NODE_HPP
42#define PB_DS_RB_TREE_NODE_HPP
51 template<
typename Value_Type,
class Metadata,
typename _Alloc>
55 typedef Value_Type value_type;
56 typedef Metadata metadata_type;
61 typedef typename rebind_traits<_Alloc, metadata_type>::reference
64 typedef typename rebind_traits<_Alloc, metadata_type>::const_reference
65 metadata_const_reference;
71 metadata_const_reference
73 {
return m_metadata; }
77 {
return m_metadata; }
79#ifdef PB_DS_BIN_SEARCH_TREE_TRACE_
83 std::cout << PB_DS_V2F(m_value) <<(m_red?
" <r> " :
" <b> ")
84 <<
"(" << m_metadata <<
")";
88 node_pointer m_p_left;
89 node_pointer m_p_right;
90 node_pointer m_p_parent;
93 metadata_type m_metadata;
96 template<
typename Value_Type,
typename _Alloc>
100 typedef Value_Type value_type;
110#ifdef PB_DS_BIN_SEARCH_TREE_TRACE_
113 {
std::cout << PB_DS_V2F(m_value) <<(m_red?
" <r> " :
" <b> "); }
116 node_pointer m_p_left;
117 node_pointer m_p_right;
118 node_pointer m_p_parent;
ostream cout
Linked to standard input.
GNU extensions for policy-based data structures for public use.
Represents no type, or absence of type, for template tricks.
Consistent API for accessing allocator-related types.
Node for Red-Black trees.