[#absl-operator_3way-04] = xref:absl.adoc[absl]::operator<=> :relfileprefix: ../ :mrdocs: Three‐way comparison operators == Synopses Declared in `<absl/time/time.h>` Three‐way‐compares two times. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::strong_ordering xref:absl/operator_3way-0d.adoc[operator<=>]( xref:absl/Time.adoc[Time] lhs, xref:absl/Time.adoc[Time] rhs); ---- [.small]#xref:absl/operator_3way-0d.adoc[_» more..._]# Three‐way‐compares two durations. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::strong_ordering xref:absl/operator_3way-03e.adoc[operator<=>]( xref:absl/Duration.adoc[Duration] lhs, xref:absl/Duration.adoc[Duration] rhs); ---- [.small]#xref:absl/operator_3way-03e.adoc[_» more..._]# Performs a three‐way comparison of `lhs` and `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::strong_ordering xref:absl/operator_3way-02.adoc[operator<=>]( xref:absl/uint128.adoc[uint128] lhs, xref:absl/uint128.adoc[uint128] rhs); ---- [.small]#xref:absl/operator_3way-02.adoc[_» more..._]# Three‐way compares string data with a Cord. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering xref:absl/operator_3way-09.adoc[operator<=>]( std::string_view lhs, xref:absl/Cord.adoc[Cord] const& rhs); ---- [.small]#xref:absl/operator_3way-09.adoc[_» more..._]# Three‐way compares a Cord with string data. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering xref:absl/operator_3way-0c.adoc[operator<=>]( xref:absl/Cord.adoc[Cord] const& lhs, std::string_view rhs); ---- [.small]#xref:absl/operator_3way-0c.adoc[_» more..._]# Three‐way compares two Cords. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering xref:absl/operator_3way-030.adoc[operator<=>]( xref:absl/Cord.adoc[Cord] const& x, xref:absl/Cord.adoc[Cord] const& y); ---- [.small]#xref:absl/operator_3way-030.adoc[_» more..._]# == Return Value * The ordering of `lhs` relative to `rhs`. * An ordering describing whether `lhs` is less than, equal to, or greater than `rhs`. * The ordering of `x` relative to `y`. == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | The left‐hand time. | *rhs* | The right‐hand time. | *x* | The left‐hand Cord. | *y* | The right‐hand Cord. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#