41#ifndef PB_DS_SPLAY_TREE_NODE_HPP
42#define PB_DS_SPLAY_TREE_NODE_HPP
49 template<
typename Value_Type,
class Metadata,
typename _Alloc>
53 typedef Value_Type value_type;
54 typedef Metadata metadata_type;
59 typedef typename rebind_traits<_Alloc, metadata_type>::reference
62 typedef typename rebind_traits<_Alloc, metadata_type>::const_reference
63 metadata_const_reference;
65#ifdef PB_DS_BIN_SEARCH_TREE_TRACE_
68 {
std::cout << PB_DS_V2F(m_value) <<
"(" << m_metadata <<
")"; }
75 inline metadata_const_reference
77 {
return m_metadata; }
79 inline metadata_reference
81 {
return m_metadata; }
85 node_pointer m_p_left;
86 node_pointer m_p_right;
87 node_pointer m_p_parent;
88 metadata_type m_metadata;
91 template<
typename Value_Type,
typename _Alloc>
95 typedef Value_Type value_type;
103 {
return m_special; }
105#ifdef PB_DS_BIN_SEARCH_TREE_TRACE_
111 node_pointer m_p_left;
112 node_pointer m_p_right;
113 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.