[#absl-c_minmax_element-02] = xref:absl.adoc[absl]::c_minmax_element :relfileprefix: ../ :mrdocs: `c_minmax_element` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::minmax_element()` function to return a pair of iterators pointing to the elements containing the smallest and largest values, respectively, using `operator<` to make the comparisons. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename C> constexpr /* implementation-defined */ xref:absl/c_minmax_element-0e.adoc[c_minmax_element](C& c); ---- [.small]#xref:absl/c_minmax_element-0e.adoc[_» more..._]# Overload of `c_minmax_element()` for performing `comp` comparisons other than `operator<`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename LessThan> constexpr /* implementation-defined */ xref:absl/c_minmax_element-06.adoc[c_minmax_element]( C& c, LessThan&& comp); ---- [.small]#xref:absl/c_minmax_element-06.adoc[_» more..._]# == Return Value * A pair of iterators to the smallest and largest elements. * A pair of iterators to the smallest and largest elements under `comp`. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to inspect. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#