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

`quantity&lowbar;ref&lowbar;from` overloads

== Synopses

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

Returns a mutable reference to the underlying quantity, measured from `point&lowbar;origin`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/PointOrigin.adoc[PointOrigin] PO2&gt;
requires (PO2&lcub;&rcub; &equals;&equals; point&lowbar;origin)
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/quantity_point-08/quantity_type.adoc[quantity&lowbar;type]&
xref:mp_units/quantity_point-08/quantity_ref_from-07.adoc[quantity&lowbar;ref&lowbar;from](PO2 po) &amp; noexcept;
----

[.small]#xref:mp_units/quantity_point-08/quantity_ref_from-07.adoc[_» more&period;&period;&period;_]#

Returns a const reference to the underlying quantity, measured from `point&lowbar;origin`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/PointOrigin.adoc[PointOrigin] PO2&gt;
requires (PO2&lcub;&rcub; &equals;&equals; point&lowbar;origin)
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/quantity_point-08/quantity_type.adoc[quantity&lowbar;type] const&
xref:mp_units/quantity_point-08/quantity_ref_from-08.adoc[quantity&lowbar;ref&lowbar;from](PO2 po) const &amp; noexcept;
----

[.small]#xref:mp_units/quantity_point-08/quantity_ref_from-08.adoc[_» more&period;&period;&period;_]#

Deleted overload that prevents forming a reference into a temporary quantity point&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/PointOrigin.adoc[PointOrigin] PO2&gt;
requires (PO2&lcub;&rcub; &equals;&equals; point&lowbar;origin)
constexpr
xref:mp_units/quantity_point-08/quantity_type.adoc[quantity&lowbar;type] const&&
xref:mp_units/quantity_point-08/quantity_ref_from-0a.adoc[quantity&lowbar;ref&lowbar;from](PO2 po) const &amp;&amp; noexcept = delete;
----

[.small]#xref:mp_units/quantity_point-08/quantity_ref_from-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

* A reference to the stored offset quantity&period;
* A const reference to the stored offset quantity&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *po*
| a point origin equal to `point&lowbar;origin`
|===


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