[#mp_units-pow-07]
= xref:mp_units.adoc[mp&lowbar;units]::pow
:relfileprefix: ../
:mrdocs:

Computes the value of a reference raised to the `Num&sol;Den` power

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    intmax&lowbar;t Num,
    intmax&lowbar;t Den = 1&gt;
requires (Den !&equals; 0)
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
&sol;&ast; implementation-defined &ast;&sol;
pow(xref:mp_units/reference.adoc[reference]);
----

== Return Value

The result of computation

== Template Parameters

[cols=2]
|===
| Name
| Description
| *Num*
| Exponent numerator
| *Den*
| Exponent denominator
|===

== Parameters

[cols=2]
|===
| Name
| Description
| *r*
| Reference being the base of the operation
|===


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