[#mp_units-quantity_point-08-quantity_from-08]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity_point-08.adoc[quantity&lowbar;point]::quantity&lowbar;from
:relfileprefix: ../../
:mrdocs:

== 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/PointOrigin.adoc[PointOrigin] PO2&gt;
requires requires(const quantity&lowbar;point qp) &lcub; qp &hyphen; PO2&lcub;&rcub;&semi; &rcub;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
quantity&lowbar;from(PO2) const;
----

== Return Value

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

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