[#absl-operator_3way-04]
= xref:absl.adoc[absl]::operator&lt;&equals;&gt;
:relfileprefix: ../
:mrdocs:

Three&hyphen;way comparison operators

== Synopses

Declared in `&lt;absl&sol;time&sol;time&period;h&gt;`

Three&hyphen;way&hyphen;compares two times&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
std::strong&lowbar;ordering
xref:absl/operator_3way-0d.adoc[operator&lt;&equals;&gt;](
    xref:absl/Time.adoc[Time] lhs,
    xref:absl/Time.adoc[Time] rhs);
----

[.small]#xref:absl/operator_3way-0d.adoc[_» more&period;&period;&period;_]#

Three&hyphen;way&hyphen;compares two durations&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
std::strong&lowbar;ordering
xref:absl/operator_3way-03e.adoc[operator&lt;&equals;&gt;](
    xref:absl/Duration.adoc[Duration] lhs,
    xref:absl/Duration.adoc[Duration] rhs);
----

[.small]#xref:absl/operator_3way-03e.adoc[_» more&period;&period;&period;_]#

Performs a three&hyphen;way comparison of `lhs` and `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
std::strong&lowbar;ordering
xref:absl/operator_3way-02.adoc[operator&lt;&equals;&gt;](
    xref:absl/uint128.adoc[uint128] lhs,
    xref:absl/uint128.adoc[uint128] rhs);
----

[.small]#xref:absl/operator_3way-02.adoc[_» more&period;&period;&period;_]#

Three&hyphen;way compares string data with a Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::strong&lowbar;ordering
xref:absl/operator_3way-09.adoc[operator&lt;&equals;&gt;](
    std::string&lowbar;view lhs,
    xref:absl/Cord.adoc[Cord] const& rhs);
----

[.small]#xref:absl/operator_3way-09.adoc[_» more&period;&period;&period;_]#

Three&hyphen;way compares a Cord with string data&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::strong&lowbar;ordering
xref:absl/operator_3way-0c.adoc[operator&lt;&equals;&gt;](
    xref:absl/Cord.adoc[Cord] const& lhs,
    std::string&lowbar;view rhs);
----

[.small]#xref:absl/operator_3way-0c.adoc[_» more&period;&period;&period;_]#

Three&hyphen;way compares two Cords&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::strong&lowbar;ordering
xref:absl/operator_3way-030.adoc[operator&lt;&equals;&gt;](
    xref:absl/Cord.adoc[Cord] const& x,
    xref:absl/Cord.adoc[Cord] const& y);
----

[.small]#xref:absl/operator_3way-030.adoc[_» more&period;&period;&period;_]#

== Return Value

* The ordering of `lhs` relative to `rhs`&period;
* An ordering describing whether `lhs` is less than, equal to, or greater than `rhs`&period;
* The ordering of `x` relative to `y`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| The left&hyphen;hand time&period;
| *rhs*
| The right&hyphen;hand time&period;
| *x*
| The left&hyphen;hand Cord&period;
| *y*
| The right&hyphen;hand Cord&period;
|===


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