Synopsis

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

template<Unit U>
requires std::is_final_v<decltype(detail::get_associated_quantity(U{}))>
[[deprecated("2.6.0: `quantity_spec` definition of `U` should not be marked `final`"), nodiscard]]
consteval
QuantitySpec auto
get_quantity_spec(U);
Warning

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

Note

This function is a hidden friend of named_unit<Symbol, U, QS>, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

Note

The return value should not be discarded.

Created with MrDocs