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

Returns the quantity specification of a reference

== Synopsis

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

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

== 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]#
