[#mp_units-quantity-01-2constructor-03] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::quantity :relfileprefix: ../../ :mrdocs: Constructor == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename FwdValue, xref:mp_units/Reference.adoc[Reference] R2> requires (!equivalent(unit, get_unit(R2{}))) && detail::QuantityConstructibleFrom<quantity, quantity<R2{}, std::remove_cvref_t<FwdValue>>> constexpr quantity( FwdValue&& val, R2); ---- == Parameters [cols=2] |=== | Name | Description | *val* | The object to move construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#