Computes the value of a dimension raised to the Num/Den power
<mp-units/framework/dimension.h>
template<
intmax_t Num,
intmax_t Den = 1,
Unit D>
requires (Den != 0)
[[nodiscard]]
consteval
QuantitySpec auto
pow(D d);
| Name | Description |
|---|---|
| Num | Exponent numerator |
| Den | Exponent denominator |
| Name | Description |
|---|---|
| d | Dimension being the base of the operation |
| q | Quantity specification being the base of the operation |
| u | Unit being the base of the operation |