[#mp_units-utility-operator_3way-09a] = xref:mp_units.adoc[mp_units]::xref:mp_units/utility.adoc[utility]::operator<=> :relfileprefix: ../../ :mrdocs: Compares a safe_int with a constrained value == Synopsis Declared in `<mp‐units/utility/safe_int.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr auto operator<=>( xref:mp_units/utility/safe_int-07.adoc[safe_int] lhs, xref:mp_units/utility/constrained.adoc[constrained<U, CP>] const& rhs); ---- == Return Value the ordering of the underlying values [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | the safe_int to compare | *rhs* | the constrained value to compare against |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#