Three‐way‐compares two durations.

Synopsis

Declared in <absl/time/time.h>

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

Return Value

The ordering of lhs relative to rhs.

Parameters

Name

Description

lhs

The left‐hand duration.

rhs

The right‐hand duration.

Created with MrDocs