42#ifdef PB_DS_CLASS_C_DEC
47erase_in_pos_imp(key_const_reference r_key,
const comp_hash& r_pos_hash_pair)
49 PB_DS_ASSERT_VALID((*
this))
50 entry_pointer p_e = m_entries[r_pos_hash_pair.first];
51 resize_base::notify_erase_search_start();
54 resize_base::notify_erase_search_end();
55 PB_DS_CHECK_KEY_DOES_NOT_EXIST(r_key)
56 PB_DS_ASSERT_VALID((*
this))
60 if (hash_eq_fn_base::operator()(PB_DS_V2F(p_e->m_value), p_e->m_hash,
61 r_key, r_pos_hash_pair.second))
63 resize_base::notify_erase_search_end();
64 PB_DS_CHECK_KEY_EXISTS(r_key)
65 erase_entry_pointer(m_entries[r_pos_hash_pair.first]);
66 do_resize_if_needed_no_throw();
67 PB_DS_ASSERT_VALID((*
this))
73 entry_pointer p_next_e = p_e->m_p_next;
76 resize_base::notify_erase_search_end();
77 PB_DS_CHECK_KEY_DOES_NOT_EXIST(r_key)
78 PB_DS_ASSERT_VALID((*
this))
82 if (hash_eq_fn_base::operator()(PB_DS_V2F(p_next_e->m_value),
83 p_next_e->m_hash, r_key,
84 r_pos_hash_pair.second))
86 resize_base::notify_erase_search_end();
87 PB_DS_CHECK_KEY_EXISTS(r_key)
88 erase_entry_pointer(p_e->m_p_next);
89 do_resize_if_needed_no_throw();
90 PB_DS_ASSERT_VALID((*
this))
93 resize_base::notify_erase_search_collision();