[#mp_units-quantity-01-2constructor-02] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::quantity :relfileprefix: ../../ :mrdocs: Copy constructor == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< auto R2, typename Rep2> requires detail::QuantityConstructibleFrom<quantity, quantity<R2, Rep2>> constexpr explicit(!implicitly_convertible(get_quantity_spec(R2), quantity_spec) || !std::convertible_to<Rep2, rep>) quantity(xref:mp_units/quantity-01.adoc[quantity<R2, Rep2>] const& q); ---- == Parameters [cols=2] |=== | Name | Description | *q* | The object to copy construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#