#ifndef PYTHONIC_INCLUDE_BISECT_BISECT_HPP #define PYTHONIC_INCLUDE_BISECT_BISECT_HPP #include "pythonic/include/utils/functor.hpp" #include PYTHONIC_NS_BEGIN namespace bisect { namespace details { template using bisect_fun = decltype(std::upper_bound); } template long bisect(X const &x, A const &a, long lo = 0, details::bisect_fun const &fun = std::upper_bound); template long bisect(X const &x, A const &a, long lo, long hi, details::bisect_fun const &fun = std::upper_bound); DEFINE_FUNCTOR(pythonic::bisect, bisect); } PYTHONIC_NS_END #endif