mp_units::utility::operator<=>¶
Three-way comparison operator
Synopsis¶
Declared in <mp-units/utility/uncertain.h>
[[nodiscard]] constexpr std::common_comparison_category_t<
std::compare_three_way_result_t<value_type>, std::weak_ordering>
operator<=>(uncertain const& lhs, uncertain const& rhs);
Note
This function is a hidden friend of uncertain, declared only inside that 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 |