[#absl-c_lexicographical_compare-05]
= xref:absl.adoc[absl]::c&lowbar;lexicographical&lowbar;compare
:relfileprefix: ../
:mrdocs:

Overload of `c&lowbar;lexicographical&lowbar;compare()` for performing a lexicographical comparison using a `comp` operator instead of `operator&lt;`&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Sequence1,
    typename Sequence2,
    typename LessThan&gt;
constexpr
bool
c&lowbar;lexicographical&lowbar;compare(
    Sequence1 const& sequence1,
    Sequence2 const& sequence2,
    LessThan&& comp);
----

== Return Value

`true` if `sequence1` is lexicographically less than `sequence2` under `comp`, otherwise `false`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sequence1*
| The first container&period;
| *sequence2*
| The second container&period;
| *comp*
| The comparison used to order the elements&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
