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