9 #ifndef CUBBYFLOW_CPP_UTILS_IMPL_H 10 #define CUBBYFLOW_CPP_UTILS_IMPL_H 18 template <
class ForwardIter,
class T,
class Compare>
19 ForwardIter
BinaryFind(ForwardIter first, ForwardIter last,
const T& value, Compare comp)
24 first = std::lower_bound(first, last, value, comp);
25 return first != last && !comp(value, *first) ? first : last;
ForwardIter BinaryFind(ForwardIter first, ForwardIter last, const T &value, Compare comp)
Definition: CppUtils-Impl.h:19
Definition: pybind11Utils.h:24