[#absl-c_min_element-0b] = xref:absl.adoc[absl]::c_min_element :relfileprefix: ../ :mrdocs: `c_min_element` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::min_element()` function to return an iterator pointing to the element with the smallest value, using `operator<` to make the comparisons. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Sequence> constexpr /* implementation-defined */ xref:absl/c_min_element-0a.adoc[c_min_element](Sequence& sequence); ---- [.small]#xref:absl/c_min_element-0a.adoc[_» more..._]# Overload of `c_min_element()` for performing a `comp` comparison other than `operator<`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence, typename LessThan> constexpr /* implementation-defined */ xref:absl/c_min_element-02.adoc[c_min_element]( Sequence& sequence, LessThan&& comp); ---- [.small]#xref:absl/c_min_element-02.adoc[_» more..._]# == Return Value * An iterator to the smallest element. * An iterator to the smallest element under `comp`. == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The container to inspect. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#