Container-based version of the <algorithm> std::binary_search() function to test if any element in the sorted container contains a value equivalent to 'value'.
Declared in <absl/algorithm/container.h>
template<
typename Sequence,
typename T>
constexpr
bool
c_binary_search(
Sequence const& sequence,
T const& value);
true if an element equivalent to value exists, otherwise false.
| Name | Description |
|---|---|
| sequence | The sorted container to search. |
| value | The value to search for. |