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

`get&lowbar;quantity&lowbar;spec` overloads

== Synopses

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

Returns the quantity specification of a reference


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto
xref:mp_units/get_quantity_spec-0f.adoc[get&lowbar;quantity&lowbar;spec](xref:mp_units/reference-0b2.adoc[reference] r);
----

[.small]#xref:mp_units/get_quantity_spec-0f.adoc[_» more&period;&period;&period;_]#

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


[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
xref:mp_units/get_quantity_spec-00.adoc[get&lowbar;quantity&lowbar;spec](xref:mp_units/reference-0b2.adoc[reference] r)
requires std&colon;&colon;is&lowbar;final&lowbar;v&lt;Q&gt;;
----

[.small]#xref:mp_units/get_quantity_spec-00.adoc[_» more&period;&period;&period;_]#

== Return Value

the quantity specification `Q`

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| the reference to query
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
