Skip to content

mp_units::pow

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

Synopsis

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

template<intmax_t Num, intmax_t Den = 1>
  requires(Den != 0)
[[nodiscard]] consteval /* implementation-defined */ pow(reference);

Note

This function is a hidden friend of reference, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

Note

The return value should not be discarded.

Template Parameters

NameDescription
NumExponent numerator
DenExponent denominator