[#absl-c_minmax_element-0e] = xref:absl.adoc[absl]::c_minmax_element :relfileprefix: ../ :mrdocs: 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. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename C> constexpr /* implementation-defined */ c_minmax_element(C& c); ---- == Return Value A pair of iterators to the smallest and largest elements. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to inspect. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#