[#mp_units-get_common_quantity_spec-0b] = xref:mp_units.adoc[mp_units]::get_common_quantity_spec :relfileprefix: ../ :mrdocs: Returns the common quantity specification of two quantity specifications == Synopsis Declared in `<mp‐units/framework/quantity_spec_conversion.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/QuantitySpec.adoc[QuantitySpec] Q1, xref:mp_units/QuantitySpec.adoc[QuantitySpec] Q2> requires (detail::have_common_quantity_spec(Q1{}, Q2{})) [[nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto get_common_quantity_spec( Q1 q1, Q2 q2); ---- == Return Value the strongest quantity specification that both arguments are convertible to [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Template Parameters [cols="1,4"] |=== | Name| Description | *Q1* | first quantity specification type | *Q2* | second quantity specification type |=== == Parameters [cols="1,4"] |=== | Name| Description | *q1* | first quantity specification value | *q2* | second quantity specification value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#