mp_units::get_common_quantity_spec¶
Synopses¶
Declared in <mp-units/framework/quantity_spec_conversion.h>
[[nodiscard]] consteval QuantitySpec auto get_common_quantity_spec(auto q);
template<QuantitySpec Q1, QuantitySpec Q2>
requires(detail::have_common_quantity_spec(Q1{}, Q2{}))
[[nodiscard]] consteval QuantitySpec auto get_common_quantity_spec(Q1, Q2);
[[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...); };
Return Value¶
Note
The return value should not be discarded.