41#ifdef PB_DS_CLASS_C_DEC
43#ifdef PB_DS_LC_NS_HEAP_TRACE_
51 trace_node(m_p_root, 0);
58trace_node(node_const_pointer p_nd, size_type level)
62 for (size_type i = 0; i < level; ++i)
66 " prev = " << p_nd->m_p_prev_or_parent <<
67 " next " << p_nd->m_p_next_sibling <<
68 " left = " << p_nd->m_p_l_child <<
" ";
70 trace_node_metadata(p_nd, type_to_type<node_metadata>());
72 trace_node(p_nd->m_p_l_child, level + 1);
73 p_nd = p_nd->m_p_next_sibling;
78template<
typename Metadata_>
81trace_node_metadata(node_const_pointer p_nd, type_to_type<Metadata_>)
83 std::cerr <<
"(" << p_nd->m_metadata <<
") ";
89trace_node_metadata(node_const_pointer, type_to_type<null_type>)
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
Write a newline and flush the stream.
ostream cerr
Linked to standard output.