[#absl-c_equal_range-0d] = xref:absl.adoc[absl]::c_equal_range :relfileprefix: ../ :mrdocs: `c_equal_range` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::equal_range()` function to return an iterator pair pointing to the first and last elements in a sorted container which compare equal to `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence, typename T> constexpr /* implementation-defined */ xref:absl/c_equal_range-0f.adoc[c_equal_range]( Sequence& sequence, T const& value); ---- [.small]#xref:absl/c_equal_range-0f.adoc[_» more..._]# Overload of `c_equal_range()` for performing a `comp` comparison other than the default `operator<`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence, typename T, typename LessThan> constexpr /* implementation-defined */ xref:absl/c_equal_range-00.adoc[c_equal_range]( Sequence& sequence, T const& value, LessThan&& comp); ---- [.small]#xref:absl/c_equal_range-00.adoc[_» more..._]# == Return Value * A pair of iterators bounding the range of elements equal to `value`. * A pair of iterators bounding the range of elements equivalent to `value` under `comp`. == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The sorted container to search. | *value* | The value to compare against. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#