[#mp_units-quantity-01-2constructor-0f] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::quantity :relfileprefix: ../../ :mrdocs: Construct from `rep` == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit(!mp_units::implicitly_convertible(quantity_spec, dimensionless)) quantity(xref:mp_units/quantity-01/rep.adoc[rep] val) requires detail::ExplicitFromNumber<reference>; ---- == Parameters [cols="1,4"] |=== |Name|Description | *val* | The object to construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#