[#mp_units-operator_star-067]
= xref:mp_units.adoc[mp&lowbar;units]::operator&ast;
:relfileprefix: ../
:mrdocs:

Deprecated constructor of a quantity from a representation value and an offset&hyphen;unit reference

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;reference&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename FwdRep,
    xref:mp_units/Reference-0ba.adoc[Reference] R,
    xref:mp_units/RepresentationOf.adoc[RepresentationOf&lt;get&lowbar;quantity&lowbar;spec(R&lcub;&rcub;)&gt;] Rep = std::remove&lowbar;cvref&lowbar;t&lt;FwdRep&gt;&gt;
requires detail&colon;&colon;OffsetUnit&lt;decltype(get&lowbar;unit(R&lcub;&rcub;))&gt;
&lsqb;&lsqb;deprecated(&quot;2&period;3&period;0&colon; References using offset units (e&period;g&period;, temperatures) should be constructed with the &grave;delta&grave; or &grave;point&grave; helpers&quot;)&rsqb;&rsqb;
constexpr
auto
operator&ast;(
    FwdRep&& lhs,
    R r);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: 2&period;3&period;0&colon; References using offset units (e&period;g&period;, temperatures) should be constructed with the &grave;delta&grave; or &grave;point&grave; helpers. Use of this entity is allowed but discouraged.
====
== Return Value

quantity of reference `r` holding the value of `lhs`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| representation value to become the quantity&apos;s numerical value
| *r*
| offset&hyphen;unit reference defining the quantity specification and unit
|===


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