[#mp_units-quantity_point-08-point_for-0e]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity_point-08.adoc[quantity&lowbar;point]::point&lowbar;for
:relfileprefix: ../../
:mrdocs:

`point&lowbar;for` overloads

== Synopses

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

Re&hyphen;expresses this quantity point relative to another point origin that shares the same absolute point origin&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&sol;&ast; implementation-defined &ast;&sol; NewPO&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/QuantityPointOf.adoc[QuantityPointOf&lt;(NewPO&lcub;&rcub;)&gt;] auto
xref:mp_units/quantity_point-08/point_for-07.adoc[point&lowbar;for](NewPO new&lowbar;origin) const;
----

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

Re&hyphen;expresses this quantity point relative to a point origin anchored to a different absolute point origin, via a user&hyphen;defined `frame&lowbar;projection`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    xref:mp_units/PointOrigin.adoc[PointOrigin] NewPO,
    typename&period;&period;&period; Args&gt;
requires detail&colon;&colon;HasFrameProjection&lt;absolute&lowbar;point&lowbar;origin, detail&colon;&colon;get&lowbar;absolute&lowbar;point&lowbar;origin(NewPO&lcub;&rcub;)&gt; &amp;&amp;
             requires(quantity&lowbar;point&lt;reference, absolute&lowbar;point&lowbar;origin, Rep&gt; at&lowbar;src, Args&period;&period;&period; args) &lcub;
               &lcub;
                 frame&lowbar;projection&lt;absolute&lowbar;point&lowbar;origin, detail&colon;&colon;get&lowbar;absolute&lowbar;point&lowbar;origin(NewPO&lcub;&rcub;)&gt;(at&lowbar;src, args&period;&period;&period;)
               &rcub; &hyphen;&gt; QuantityPointOf&lt;detail&colon;&colon;get&lowbar;absolute&lowbar;point&lowbar;origin(NewPO&lcub;&rcub;)&gt;&semi;
             &rcub;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/QuantityPointOf.adoc[QuantityPointOf&lt;(NewPO&lcub;&rcub;)&gt;] auto
xref:mp_units/quantity_point-08/point_for-0b.adoc[point&lowbar;for](
    NewPO new&lowbar;origin,
    Args&&&period;&period;&period; args) const;
----

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

== Return Value

This quantity point measured from `new&lowbar;origin`&period;

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

[cols="1,4"]
|===
| Name| Description
| *new&lowbar;origin*
| the point origin to express this quantity point from
| *args*
| extra arguments forwarded to the `frame&lowbar;projection` between the two absolute point origins
|===


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