41 #ifdef PB_DS_LC_NS_HEAP_TRACE_ 49 trace_node(m_p_root, 0);
56 trace_node(node_const_pointer p_nd, size_type level)
60 for (size_type i = 0; i < level; ++i)
64 " prev = " << p_nd->m_p_prev_or_parent <<
65 " next " << p_nd->m_p_next_sibling <<
66 " left = " << p_nd->m_p_l_child <<
" ";
68 trace_node_metadata(p_nd, type_to_type<node_metadata>());
70 trace_node(p_nd->m_p_l_child, level + 1);
71 p_nd = p_nd->m_p_next_sibling;
76 template<
typename Metadata_>
79 trace_node_metadata(node_const_pointer p_nd, type_to_type<Metadata_>)
81 std::cerr <<
"(" << p_nd->m_metadata <<
") ";
87 trace_node_metadata(node_const_pointer, type_to_type<null_type>)
90 #endif // #ifdef PB_DS_LC_NS_HEAP_TRACE_ basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
Write a newline and flush the stream.
ostream cerr
Linked to standard output.