[#mp_units-get_common_quantity_spec-0a] = xref:mp_units.adoc[mp_units]::get_common_quantity_spec :relfileprefix: ../ :mrdocs: Returns the common quantity specification of three or more quantity specifications == Synopsis Declared in `<mp‐units/framework/quantity_spec_conversion.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[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 the common quantity specification obtained by folding all arguments pairwise [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *q1* | first quantity specification value | *q2* | second quantity specification value | *q3* | third quantity specification value | *rest* | any remaining quantity specification values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#