11 #ifndef CUBBYFLOW_CPP_UTILS_IMPL_HPP 12 #define CUBBYFLOW_CPP_UTILS_IMPL_HPP 20 template <
class ForwardIter,
class T,
class Compare>
21 ForwardIter
BinaryFind(ForwardIter first, ForwardIter last,
const T& value,
27 first = std::lower_bound(first, last, value, comp);
28 return first != last && !comp(value, *first) ? first : last;
ForwardIter BinaryFind(ForwardIter first, ForwardIter last, const T &value, Compare comp)
Definition: CppUtils-Impl.hpp:21
Definition: pybind11Utils.hpp:20