옵션 |
|
template
<
class
Iterator,
class
V>
inline
Iterator Binary_search(Iterator first, Iterator last, V& v){
Iterator it = std::lower_bound(first, last, v);
if
(it == last || v < *it)
return
NULL;
else
return
it;
}