[#mp_units-get_common_unit-08c] = xref:mp_units.adoc[mp_units]::get_common_unit :relfileprefix: ../ :mrdocs: Computes the common unit of a single new unit and a `common_unit` compound == Synopsis Declared in `<mp‐units/framework/unit_conversion.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/Unit.adoc[Unit]... Us, /* implementation-defined */ NewUnit> [[nodiscard]] consteval xref:mp_units/Unit.adoc[Unit] auto get_common_unit( NewUnit nu, xref:mp_units/common_unit.adoc[common_unit<Us...>] cu); ---- == Return Value the common unit obtained by merging `nu` into `cu's` unit list [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *nu* | the single unit | *cu* | the `common_unit` compound |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#