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

Construct from `rep`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit(!mp&lowbar;units&colon;&colon;implicitly&lowbar;convertible(quantity&lowbar;spec, dimensionless))
quantity(xref:mp_units/quantity-01/rep.adoc[rep] val)
requires detail&colon;&colon;ExplicitFromNumber&lt;reference&gt;;
----

== Parameters

[cols="1,4"]
|===
|Name|Description

| *val*
| The object to construct from
|===


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