[#mp_units-operator_minus-06]
= xref:mp_units.adoc[mp&lowbar;units]::operator&hyphen;
:relfileprefix: ../
:mrdocs:

== 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;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
operator&hyphen;(
    QP const& lhs,
    QP2 const& rhs)
requires requires &lcub; lhs&period;quantity&lowbar;ref&lowbar;from(point&lowbar;origin) &hyphen; rhs&period;quantity&lowbar;ref&lowbar;from(QP2&colon;&colon;point&lowbar;origin)&semi; &rcub;;
----


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