mp_units::pow

Computes the value of a reference raised to the Num/Den power

Synopsis

Declared in <mp-units/framework/reference.h>

[[nodiscard]]
consteval
/* implementation-defined */
pow(reference r);

Return Value

The result of computation

NOTE

The return value should not be discarded.

Template Parameters

NameDescription
NumExponent numerator
DenExponent denominator

Parameters

NameDescription
rReference being the base of the operation