[#mp_units-quantity_point_like_traits]
= xref:mp_units.adoc[mp&lowbar;units]::quantity&lowbar;point&lowbar;like&lowbar;traits
:relfileprefix: ../
:mrdocs:

Provides support for external quantity point&hyphen;like types

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;customization&lowbar;points&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
struct quantity&lowbar;point&lowbar;like&lowbar;traits;
----

== Description

The type trait should provide nested `reference` and `origin` objects, a type alias `rep,` and static member functions `to&lowbar;numerical&lowbar;value(T)` that returns the raw value of the the quantity being the offset of the point from the origin and `from&lowbar;numerical&lowbar;value(rep)` that returns `T` formed this raw value&period;

If the following expression is `true,` the specified conversion will be explicit&colon; &hyphen; `explicit&lowbar;import` for the conversion from `T` to a `quantity&lowbar;point` type, &hyphen; `explicit&lowbar;export` for the conversion from a `quantity&lowbar;point` type to `T&period;`

Usage example can be found in `mp&hyphen;units&sol;systems&sol;si&sol;chrono&period;h` header file&period;

== Template Parameters

[cols=2]
|===
| Name
| Description
| *T*
| the type to provide support for
|===


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