Computes the common unit of two common_unit compounds by merging their unit lists
Synopsis
Declared in <mp‐units/framework/unit_conversion.h>
template<
Unit Front,
Unit... Rest,
Unit... Us>
requires (detail::UnitConvertibleTo<common_unit<Front, Rest...>, common_unit<Us...>{}>)
[[nodiscard]]
consteval
Unit auto
get_common_unit(
common_unit<Front, Rest...> cu1,
common_unit<Us...> cu2);
Return Value
the common unit obtained by merging the unit lists of cu1 and cu2
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
cu1 |
first |
cu2 |
second |
Created with MrDocs