[#mp_units-get_common_unit-0e] = xref:mp_units.adoc[mp_units]::get_common_unit :relfileprefix: ../ :mrdocs: Returns the common unit of a single unit == Synopsis Declared in `<mp‐units/framework/reference.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval xref:mp_units/Unit.adoc[Unit] auto get_common_unit(auto u); ---- == Return Value `u` unchanged [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *u* | the unit |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#