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

Synopsis

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

[[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>;
Warning

Deprecated: 2.6.0: `Q` definition should not be marked `final`. Use of this entity is allowed but discouraged.

Return Value

the quantity specification Q

Note

The return value should not be discarded.

Parameters

Name

Description

r

the reference to query

Created with MrDocs