[#mp_units-quantity_point-08-2constructor-08]
= 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 a quantity measured from another point origin that shares this one&apos;s absolute point origin&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;
    typename FwdQ,
    xref:mp_units/PointOrigin.adoc[PointOrigin] PO2,
    xref:mp_units/Quantity-0c.adoc[Quantity] Q = std::remove&lowbar;cvref&lowbar;t&lt;FwdQ&gt;&gt;
requires PointOriginFor&lt;PO2, Q&colon;&colon;quantity&lowbar;spec&gt; &amp;&amp; std&colon;&colon;constructible&lowbar;from&lt;quantity&lowbar;type, FwdQ&gt; &amp;&amp;
             detail&colon;&colon;SameAbsolutePointOriginAs&lt;PO2, PO&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
quantity&lowbar;point(
    FwdQ&& q,
    PO2 po);
----

== Return Value

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

[cols="1,4"]
|===
| Name| Description
| *q*
| the quantity giving the offset from `po`
| *po*
| the point origin the quantity is measured from
|===


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