[#absl-c_equal_range-0d]
= xref:absl.adoc[absl]::c&lowbar;equal&lowbar;range
:relfileprefix: ../
:mrdocs:

`c&lowbar;equal&lowbar;range` overloads

== Synopses

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

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;equal&lowbar;range()` function to return an iterator pair pointing to the first and last elements in a sorted container which compare equal to `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Sequence,
    typename T&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
xref:absl/c_equal_range-0f.adoc[c&lowbar;equal&lowbar;range](
    Sequence& sequence,
    T const& value);
----

[.small]#xref:absl/c_equal_range-0f.adoc[_» more&period;&period;&period;_]#

Overload of `c&lowbar;equal&lowbar;range()` for performing a `comp` comparison other than the default `operator&lt;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Sequence,
    typename T,
    typename LessThan&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
xref:absl/c_equal_range-00.adoc[c&lowbar;equal&lowbar;range](
    Sequence& sequence,
    T const& value,
    LessThan&& comp);
----

[.small]#xref:absl/c_equal_range-00.adoc[_» more&period;&period;&period;_]#

== Return Value

* A pair of iterators bounding the range of elements equal to `value`&period;
* A pair of iterators bounding the range of elements equivalent to `value` under `comp`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sequence*
| The sorted container to search&period;
| *value*
| The value to compare against&period;
| *comp*
| The comparison used to order the elements&period;
|===


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