[#mp_units-quantity-01-2constructor-02]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity-01.adoc[quantity]::quantity
:relfileprefix: ../../
:mrdocs:

Construct from `Value`

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;quantity&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Value&gt;
requires detail&colon;&colon;ExplicitFromNumber&lt;reference&gt; &amp;&amp; detail&colon;&colon;RepConstructibleFrom&lt;rep, Value&gt; &amp;&amp;
             (!std&colon;&colon;convertible&lowbar;to&lt;Value, rep&gt;)
constexpr
explicit
quantity(Value val);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *val*
| The object to construct from
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
