[#absl-c_is_sorted-0d] = xref:absl.adoc[absl]::c_is_sorted :relfileprefix: ../ :mrdocs: Overload of `c_is_sorted()` for performing a `comp` comparison other than the default `operator<`. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename LessThan> constexpr bool c_is_sorted( C const& c, LessThan&& comp); ---- == Return Value `true` if `c` is sorted according to `comp`, otherwise `false`. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to test. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#