[#mp_units-quantity-03]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity-01.adoc[quantity&lt;R, representation&lowbar;canonical&lowbar;type&lowbar;t&lt;Value&gt;&gt;]
:relfileprefix: ../
:mrdocs:

Deduces a `quantity` from a numerical value alone, using the `one` reference by default&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    xref:mp_units/Reference-0ba.adoc[Reference] auto R = one,
    typename Value&gt;
requires RepresentationOf&lt;representation&lowbar;canonical&lowbar;type&lowbar;t&lt;Value&gt;, get&lowbar;quantity&lowbar;spec(R)&gt;
xref:mp_units/quantity-01.adoc[quantity&lt;R, representation&lowbar;canonical&lowbar;type&lowbar;t&lt;Value&gt;&gt;](Value) -> xref:mp_units/quantity-01.adoc[quantity&lt;R, representation&lowbar;canonical&lowbar;type&lowbar;t&lt;Value&gt;&gt;];
----

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *R*
| the reference to use, defaulting to `one`
| *Value*
| the numerical value type
|===


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