[#absl-c_binary_search-05]
= xref:absl.adoc[absl]::c&lowbar;binary&lowbar;search
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;binary&lowbar;search()` function to test if any element in the sorted container contains a value equivalent to &apos;value&apos;&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Sequence,
    typename T&gt;
constexpr
bool
c&lowbar;binary&lowbar;search(
    Sequence const& sequence,
    T const& value);
----

== Return Value

`true` if an element equivalent to `value` exists, otherwise `false`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sequence*
| The sorted container to search&period;
| *value*
| The value to search for&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
