[#mp_units-operator_3way] = xref:mp_units.adoc[mp_units]::operator<=> :relfileprefix: ../ :mrdocs: Compares two quantity characters lexicographically on (order, field) == Synopsis Declared in `<mp‐units/framework/quantity_character.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr auto operator<=>( xref:mp_units/quantity_character.adoc[quantity_character] lhs, xref:mp_units/quantity_character.adoc[quantity_character] rhs) = default; ---- == Return Value the lexicographic ordering of `lhs` and `rhs` [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | first quantity character to compare | *rhs* | second quantity character to compare |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#