[#mp_units-utility-safe_int-07-operator_minus]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int]::operator&hyphen;
:relfileprefix: ../../../
:mrdocs:

Unary minus operator

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;utility&sol;safe&lowbar;int&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int&lt;decltype(&hyphen;value&lowbar;), ErrorPolicy&gt;]
operator&hyphen;() const;
----

== Return Value

Another instance of the object

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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