mp_units::get_quantity_spec

Returns the quantity specification of a reference

Synopsis

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

[[nodiscard]]
consteval
QuantitySpec auto
get_quantity_spec(reference r);

Return Value

the quantity specification Q

NOTE

The return value should not be discarded.

Parameters

NameDescription
rthe reference to query