mp_units::get_quantity_spec

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 derived_unit, 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.