[#mp_units-operator_3way-0c8]
= xref:mp_units.adoc[mp&lowbar;units]::operator&lt;&equals;&gt;
:relfileprefix: ../
:mrdocs:

Three&hyphen;way comparison operator

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;quantity&lowbar;point&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::derived&lowbar;from&lt;quantity&lowbar;point&gt; QP,
    xref:mp_units/QuantityPointOf.adoc[QuantityPointOf&lt;absolute&lowbar;point&lowbar;origin&gt;] QP2&gt;
requires std&colon;&colon;three&lowbar;way&lowbar;comparable&lowbar;with&lt;quantity&lowbar;type, typename QP2&colon;&colon;quantity&lowbar;type&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
auto
operator&lt;&equals;&gt;(
    QP const& lhs,
    QP2 const& rhs);
----

== Return Value

The relative order of the objects

== Parameters

[cols=2]
|===
| Name
| Description
| *lhs*
| The left operand
| *rhs*
| The right operand
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
