[#mp_units-get_quantity_spec-03d] = xref:mp_units.adoc[mp_units]::get_quantity_spec :relfileprefix: ../ :mrdocs: == Synopsis Declared in `<mp‐units/framework/reference.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("2.6.0: `Q` definition should not be marked `final`"), nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto get_quantity_spec(xref:mp_units/reference.adoc[reference]) requires std::is_final_v<Q>; ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: 2.6.0: `Q` definition should not be marked `final`. Use of this entity is allowed but discouraged. ==== == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#