[#mp_units-quantity_point-08-2constructor-07c]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity_point-08.adoc[quantity&lowbar;point]::quantity&lowbar;point
:relfileprefix: ../../
:mrdocs:

Constructs a quantity point from an external quantity&hyphen;point&hyphen;like type via `quantity&lowbar;point&lowbar;like&lowbar;traits`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/QuantityPointLike.adoc[QuantityPointLike] QP&gt;
requires (quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;point&lowbar;origin &equals;&equals; point&lowbar;origin) &amp;&amp;
            std&colon;&colon;constructible&lowbar;from&lt;quantity&lowbar;type, quantity&lt;quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;reference,
                                                            typename quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;rep&gt;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
explicit(quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;explicit&lowbar;import &verbar;&verbar; !std&colon;&colon;convertible&lowbar;to&lt;quantity&lt;quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;reference, typename quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;&colon;&colon;rep&gt;, quantity&lowbar;type&gt;)
quantity&lowbar;point(QP const& qp);
----

== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *qp*
| the source value, adapted through `quantity&lowbar;point&lowbar;like&lowbar;traits&lt;QP&gt;`
|===


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