42 inline typename PB_DS_CLASS_C_DEC::point_const_iterator
44 lower_bound(key_const_reference r_key)
const
46 node_pointer p_pot = m_p_head;
47 node_pointer p_nd = m_p_head->m_p_parent;
50 if (Cmp_Fn::operator()(PB_DS_V2F(p_nd->m_value), r_key))
51 p_nd = p_nd->m_p_right;
55 p_nd = p_nd->m_p_left;
57 return iterator(p_pot);
61 inline typename PB_DS_CLASS_C_DEC::point_iterator
63 lower_bound(key_const_reference r_key)
65 node_pointer p_pot = m_p_head;
66 node_pointer p_nd = m_p_head->m_p_parent;
69 if (Cmp_Fn::operator()(PB_DS_V2F(p_nd->m_value), r_key))
70 p_nd = p_nd->m_p_right;
74 p_nd = p_nd->m_p_left;
76 return iterator(p_pot);
80 inline typename PB_DS_CLASS_C_DEC::point_const_iterator
82 upper_bound(key_const_reference r_key)
const
84 node_pointer p_pot = m_p_head;
85 node_pointer p_nd = m_p_head->m_p_parent;
88 if (Cmp_Fn::operator()(r_key, PB_DS_V2F(p_nd->m_value)))
91 p_nd = p_nd->m_p_left;
94 p_nd = p_nd->m_p_right;
95 return const_iterator(p_pot);
99 inline typename PB_DS_CLASS_C_DEC::point_iterator
101 upper_bound(key_const_reference r_key)
103 node_pointer p_pot = m_p_head;
104 node_pointer p_nd = m_p_head->m_p_parent;
107 if (Cmp_Fn::operator()(r_key, PB_DS_V2F(p_nd->m_value)))
110 p_nd = p_nd->m_p_left;
113 p_nd = p_nd->m_p_right;
114 return point_iterator(p_pot);
118 inline typename PB_DS_CLASS_C_DEC::point_iterator
120 find(key_const_reference r_key)
122 PB_DS_STRUCT_ONLY_ASSERT_VALID((*
this))
123 node_pointer p_pot = m_p_head;
124 node_pointer p_nd = m_p_head->m_p_parent;
127 if (!Cmp_Fn::operator()(PB_DS_V2F(p_nd->m_value), r_key))
130 p_nd = p_nd->m_p_left;
133 p_nd = p_nd->m_p_right;
135 node_pointer ret = p_pot;
136 if (p_pot != m_p_head)
138 const bool __cmp = Cmp_Fn::operator()(r_key, PB_DS_V2F(p_pot->m_value));
142 return point_iterator(ret);
146 inline typename PB_DS_CLASS_C_DEC::point_const_iterator
148 find(key_const_reference r_key)
const
150 PB_DS_STRUCT_ONLY_ASSERT_VALID((*
this))
151 node_pointer p_pot = m_p_head;
152 node_pointer p_nd = m_p_head->m_p_parent;
155 if (!Cmp_Fn::operator()(PB_DS_V2F(p_nd->m_value), r_key))
158 p_nd = p_nd->m_p_left;
161 p_nd = p_nd->m_p_right;
163 node_pointer ret = p_pot;
164 if (p_pot != m_p_head)
166 const bool __cmp = Cmp_Fn::operator()(r_key, PB_DS_V2F(p_pot->m_value));
170 return point_const_iterator(ret);