Computes the common unit of a single new unit and a common_unit compound
Declared in <mp-units/framework/unit_conversion.h>
template<
Unit... Us,
/* implementation-defined */ NewUnit>
[[nodiscard]]
consteval
Unit auto
get_common_unit(
NewUnit nu,
common_unit<Us...> cu);
the common unit obtained by merging nu into cu's unit list
The return value should not be discarded.
| Name | Description |
|---|---|
| nu | the single unit |
| cu | the common_unit compound |