get_common_quantity_spec overloads
Declared in <mp-units/framework/quantity_spec_conversion.h>
Returns the common quantity specification of a single quantity specification
[[nodiscard]]
consteval
QuantitySpec auto
get_common_quantity_spec(auto q);
» more...
Returns the common quantity specification of two quantity specifications
template<
QuantitySpec Q1,
QuantitySpec Q2>
requires (detail::have_common_quantity_spec(Q1{}, Q2{}))
[[nodiscard]]
consteval
QuantitySpec auto
get_common_quantity_spec(
Q1 q1,
Q2 q2);
» more...
Returns the common quantity specification of three or more quantity specifications
[[nodiscard]]
consteval
QuantitySpec auto
get_common_quantity_spec(
auto q1,
auto q2,
auto q3,
auto... rest)
requires requires { mp_units::get_common_quantity_spec(mp_units::get_common_quantity_spec(q1, q2), q3, rest...); };
» more...
q unchangedThe return value should not be discarded.
| Name | Description |
|---|---|
| Q1 | first quantity specification type |
| Q2 | second quantity specification type |
| Name | Description |
|---|---|
| q | a quantity specification value |
| q1 | first quantity specification value |
| q2 | second quantity specification value |
| q3 | third quantity specification value |
| rest | any remaining quantity specification values |