mp_units::get_quantity_spec

get_quantity_spec overloads

Synopses

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

Returns the quantity specification of a reference

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

Returns the quantity specification of a reference whose Q is marked final

[[deprecated("2.6.0: `Q` definition should not be marked `final`"), nodiscard]]
consteval
QuantitySpec auto
get_quantity_spec(reference r)
requires std::is_final_v<Q>;
» more...

Return Value

the quantity specification Q

NOTE

The return value should not be discarded.

Parameters

NameDescription
rthe reference to query