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

Unary minus operators

== Synopses

Declared in `&lt;mp&hyphen;units&sol;constrained&period;h&gt;`

Unary minus operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/constrained.adoc[constrained&lt;decltype(&hyphen;std&colon;&colon;declval&lt;T&gt;()), ErrorPolicy&gt;]
xref:mp_units/operator_minus-0e.adoc[operator&hyphen;](xref:mp_units/constrained.adoc[constrained] const& x);
----

[.small]#xref:mp_units/operator_minus-0e.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_minus-07.adoc[operator&hyphen;](
    PO1 po,
    QP const& qp);
----

[.small]#xref:mp_units/operator_minus-07.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_minus-02.adoc[operator&hyphen;](
    Q const& lhs,
    Value const& rhs);
----

[.small]#xref:mp_units/operator_minus-02.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_minus-03.adoc[operator&hyphen;](
    Q const& lhs,
    xref:mp_units/quantity-01.adoc[quantity&lt;R2, Rep2&gt;] const& rhs);
----

[.small]#xref:mp_units/operator_minus-03.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_minus-0d.adoc[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]#xref:mp_units/operator_minus-0d.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_minus-00.adoc[operator&hyphen;](
    QP const& qp,
    PO2 po);
----

[.small]#xref:mp_units/operator_minus-00.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/QuantityPoint.adoc[QuantityPoint] auto
xref:mp_units/operator_minus-0a.adoc[operator&hyphen;](
    QP const& qp,
    xref:mp_units/quantity-01.adoc[quantity&lt;R2, Rep2&gt;] const& q)
requires requires &lcub; qp&period;quantity&lowbar;ref&lowbar;from(PO) &hyphen; q&semi; &rcub;;
----

[.small]#xref:mp_units/operator_minus-0a.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_minus-0c0.adoc[operator&hyphen;](
    Value const& lhs,
    Q const& rhs);
----

[.small]#xref:mp_units/operator_minus-0c0.adoc[_» more&period;&period;&period;_]#


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