[#mp_units-inverse-0e]
= xref:mp_units.adoc[mp&lowbar;units]::inverse
:relfileprefix: ../
:mrdocs:

Computes the inverse of a quantity in a provided unit

== Synopses

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/Unit.adoc[Unit] auto
xref:mp_units/inverse-0d.adoc[inverse](auto d);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
&sol;&ast; implementation-defined &ast;&sol;
xref:mp_units/inverse-0b.adoc[inverse](xref:mp_units/reference.adoc[reference]);
----

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

Computes the inverse of a quantity in a provided unit


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    xref:mp_units/Unit.adoc[Unit] auto To,
    auto R,
    typename Rep&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/inverse-09.adoc[inverse](xref:mp_units/quantity-01.adoc[quantity&lt;R, Rep&gt;] const& q)
requires requires &lcub;
    representation&lowbar;values&lt;Rep&gt;&colon;&colon;one()&semi;
    value&lowbar;cast&lt;To&gt;(representation&lowbar;values&lt;Rep&gt;&colon;&colon;one() &sol; q)&semi;
  &rcub;;
----

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


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