mp_units::get_common_unit

Returns the common unit of a single unit

Synopsis

Declared in <mp-units/framework/reference.h>

[[nodiscard]]
consteval
Unit auto
get_common_unit(auto u);

Return Value

u unchanged

NOTE

The return value should not be discarded.

Parameters

NameDescription
uthe unit