[#mp_units-quantity_point-08-operator_plus_eq]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity_point-08.adoc[quantity&lowbar;point]::operator&plus;&equals;
:relfileprefix: ../../
:mrdocs:

Addition assignment operator

== 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;
    auto R2,
    typename Rep2&gt;
requires (mp&lowbar;units&colon;&colon;implicitly&lowbar;convertible(get&lowbar;quantity&lowbar;spec(R2), quantity&lowbar;spec)) &amp;&amp;
            detail&colon;&colon;ImplicitConversion&lt;get&lowbar;unit(R2), Rep2, unit, rep&gt; &amp;&amp;
            requires(const quantity&lowbar;type q) &lcub; quantity&lowbar;from&lowbar;origin&lowbar;is&lowbar;an&lowbar;implementation&lowbar;detail&lowbar; &plus;&equals; q&semi; &rcub;
constexpr
xref:mp_units/quantity_point-08.adoc[quantity&lowbar;point]&
operator&plus;&equals;(xref:mp_units/quantity-01.adoc[quantity&lt;R2, Rep2&gt;] const& q) &amp;;
----

== Return Value

Reference to the current object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *q*
| The right operand
|===


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