5 template<
typename t_callback>
13 ptr = min + ( (max-min) >> 1);
14 int result = p_callback.test(ptr);
15 if (result<0) min = ptr + 1;
16 else if (result>0) max = ptr;
27 template<
typename t_buffer,
typename t_value>
35 ptr = min + ( (max-min) >> 1);
36 if (p_value > p_buffer[ptr]) min = ptr + 1;
37 else if (p_value < p_buffer[ptr]) max = ptr;
bool bsearch_simple_inline_t(const t_buffer &p_buffer, t_size p_count, t_value const &p_value, t_size &p_result)
bool bsearch_inline_t(t_size p_count, const t_callback &p_callback, t_size &p_result)