46 assert_valid(
const char* __file,
int __line)
const
48 #ifdef PB_DS_REGRESSION
49 s_entry_allocator.check_allocated(m_a_entries, m_actual_size);
52 resize_policy::assert_valid(__file, __line);
54 for (size_type i = 0; i < m_size; ++i)
56 #ifdef PB_DS_REGRESSION
57 s_value_allocator.check_allocated(m_a_entries[i], 1);
60 if (left_child(i) < m_size)
61 PB_DS_DEBUG_VERIFY(!entry_cmp::operator()(m_a_entries[i], m_a_entries[left_child(i)]));
65 if (right_child(i) < m_size)
66 PB_DS_DEBUG_VERIFY(!entry_cmp::operator()(m_a_entries[i], m_a_entries[right_child(i)]));
#define PB_DS_CLASS_T_DEC
Definition: bin_search_tree_.hpp:67
#define PB_DS_DEBUG_VERIFY(_Cond)
Definition: binary_heap_.hpp:327