MCPcopy Create free account
hub / github.com/catboost/catboost / BinarySearch

Function BinarySearch

util/generic/algorithm.h:692–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691template <class It, class Val>
692constexpr bool BinarySearch(It begin, It end, const Val& val) {
693 return std::binary_search(begin, end, val);
694}
695
696template <class It, class Val, class Comp>
697constexpr bool BinarySearch(It begin, It end, const Val& val, Comp comp) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 1

binary_searchFunction · 0.50

Tested by

no test coverage detected