[#mp_units-quantity-03] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity<R, representation_canonical_type_t<Value>>] :relfileprefix: ../ :mrdocs: Deduces a `quantity` from a numerical value alone, using the `one` reference by default. == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/Reference-0ba.adoc[Reference] auto R = one, typename Value> requires RepresentationOf<representation_canonical_type_t<Value>, get_quantity_spec(R)> xref:mp_units/quantity-01.adoc[quantity<R, representation_canonical_type_t<Value>>](Value) -> xref:mp_units/quantity-01.adoc[quantity<R, representation_canonical_type_t<Value>>]; ---- == 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]#