absl::operator<=>

Three-way comparison operators

Synopses

Declared in <absl/time/time.h>

Three-way-compares two times.

constexpr
std::strong_ordering
operator<=>(
    Time lhs,
    Time rhs);
» more...

Three-way-compares two durations.

constexpr
std::strong_ordering
operator<=>(
    Duration lhs,
    Duration rhs);
» more...

Performs a three-way comparison of lhs and rhs.

constexpr
std::strong_ordering
operator<=>(
    uint128 lhs,
    uint128 rhs);
» more...

Three-way compares string data with a Cord.

std::strong_ordering
operator<=>(
    std::string_view lhs,
    Cord const& rhs);
» more...

Three-way compares a Cord with string data.

std::strong_ordering
operator<=>(
    Cord const& lhs,
    std::string_view rhs);
» more...

Three-way compares two Cords.

std::strong_ordering
operator<=>(
    Cord const& x,
    Cord const& y);
» 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

NameDescription
lhsThe left-hand time.
rhsThe right-hand time.
xThe left-hand Cord.
yThe right-hand Cord.