[#mp_units-get_quantity_spec-00]
= xref:mp_units.adoc[mp&lowbar;units]::get&lowbar;quantity&lowbar;spec
:relfileprefix: ../
:mrdocs:

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;reference&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated(&quot;2&period;6&period;0&colon; &grave;Q&grave; definition should not be marked &grave;final&grave;&quot;), nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto
get&lowbar;quantity&lowbar;spec(xref:mp_units/reference.adoc[reference])
requires std&colon;&colon;is&lowbar;final&lowbar;v&lt;Q&gt;;
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: 2&period;6&period;0&colon; &grave;Q&grave; definition should not be marked &grave;final&grave;. 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]#
