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'.
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename Sequence,
typename T>
constexpr
bool
c_binary_search(
Sequence const& sequence,
T const& value);
Return Value
true if an element equivalent to value exists, otherwise false.
Parameters
Name |
Description |
sequence |
The sorted container to search. |
value |
The value to search for. |
Created with MrDocs