[#mp_units-quantity-057] = 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 and an explicit reference. == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/Reference-0ba.adoc[Reference] R, 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 v, R) -> xref:mp_units/quantity-01.adoc[quantity<R{}, representation_canonical_type_t<Value>>]; ---- == Template Parameters [cols="1,4"] |=== | Name| Description | *R* | the reference type | *Value* | the numerical value type |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#