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);
53 PB_DS_DEBUG_VERIFY(m_size <= m_actual_size);
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)]));
63 PB_DS_DEBUG_VERIFY(parent(left_child(i)) == 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)]));
68 PB_DS_DEBUG_VERIFY(parent(right_child(i)) == i);