[#mp_units-default_point_origin]
= xref:mp_units.adoc[mp&lowbar;units]::default&lowbar;point&lowbar;origin
:relfileprefix: ../
:mrdocs:

Returns the default point origin for a reference

== 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/Reference-0ba.adoc[Reference] R&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/PointOriginFor.adoc[PointOriginFor&lt;get&lowbar;quantity&lowbar;spec(R&lcub;&rcub;)&gt;] auto
default&lowbar;point&lowbar;origin(R r);
----

== Description

If the reference&apos;s unit defines its own point origin, that origin is returned&period; Otherwise, the natural point origin of the reference&apos;s quantity specification is used&period;

== Return Value

the default point origin associated with `R`

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

[cols="1,4"]
|===
| Name| Description
| *R*
| reference type for which the default point origin is requested
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| reference instance for which the default point origin is requested
|===


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