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

Synopsis

Declared in <mp‐units/framework/dimension.h>

template<
    intmax_t Num,
    intmax_t Den = 1,
    Unit D>
requires (Den != 0)
[[nodiscard]]
consteval
Unit auto
pow(D d);

Return Value

  • Dimension The result of computation

  • QuantitySpec The result of computation

  • Unit The result of computation

Template Parameters

Name

Description

Num

Exponent numerator

Den

Exponent denominator

Parameters

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

Created with MrDocs