Computes the canonical form of a unit
Declared in <mp-units/framework/unit_concepts.h>
[[nodiscard]]
consteval
auto
get_canonical_unit(auto u);
The canonical form reduces a unit to its reference unit expressed only in terms of base units together with the unit magnitude needed to reach it, so that units can be compared for compatibility and converted between each other.
| Name | Description |
|---|---|
| u | unit to compute the canonical form of |