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);
Three‐way‐compares two durations.
constexpr
std::strong_ordering
operator<=>(
Duration lhs,
Duration rhs);
Performs a three‐way comparison of lhs and rhs.
constexpr
std::strong_ordering
operator<=>(
uint128 lhs,
uint128 rhs);
Three‐way compares string data with a Cord.
std::strong_ordering
operator<=>(
std::string_view lhs,
Cord const& rhs);
Three‐way compares a Cord with string data.
std::strong_ordering
operator<=>(
Cord const& lhs,
std::string_view rhs);
Three‐way compares two Cords.
std::strong_ordering
operator<=>(
Cord const& x,
Cord const& y);
Return Value
-
The ordering of
lhsrelative torhs. -
An ordering describing whether
lhsis less than, equal to, or greater thanrhs. -
The ordering of
xrelative toy.
Parameters
Name |
Description |
lhs |
The left‐hand time. |
rhs |
The right‐hand time. |
x |
The left‐hand Cord. |
y |
The right‐hand Cord. |
Created with MrDocs