Three‐way comparison operator
Synopsis
Declared in <mp‐units/framework/quantity.h>
template<
auto R1,
typename Rep1>
requires std::three_way_comparable<Rep1> && requires { representation_values<Rep1>::zero(); }
[[nodiscard]]
constexpr
auto
operator<=>(
quantity<R1, Rep1> const& lhs,
/* implementation-defined */ rhs);
|
Note
|
This function is a hidden friend of quantity, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup. |
Return Value
The relative order of the objects
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
lhs |
The left operand |
rhs |
The right operand |
Created with MrDocs