[#mp_units-utility-constrained-operator_inc-0e]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::xref:mp_units/utility/constrained.adoc[constrained]::operator&plus;&plus;
:relfileprefix: ../../../
:mrdocs:

Increment operators

== Synopses

Declared in `&lt;mp&hyphen;units&sol;utility&sol;constrained&period;h&gt;`

Pre&hyphen;increments the wrapped value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:mp_units/utility/constrained.adoc[constrained]&
xref:mp_units/utility/constrained/operator_inc-03.adoc[operator&plus;&plus;]()
requires requires(T&amp; v) &lcub;
      &lcub; &plus;&plus;v &rcub; &hyphen;&gt; std&colon;&colon;same&lowbar;as&lt;T&amp;&gt;&semi;
    &rcub;;
----

[.small]#xref:mp_units/utility/constrained/operator_inc-03.adoc[_» more&period;&period;&period;_]#

Post&hyphen;increments the wrapped value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:mp_units/utility/constrained.adoc[constrained&lt;decltype(std&colon;&colon;declval&lt;T&amp;&gt;()&plus;&plus;), ErrorPolicy&gt;]
xref:mp_units/utility/constrained/operator_inc-08.adoc[operator&plus;&plus;](int tag);
----

[.small]#xref:mp_units/utility/constrained/operator_inc-08.adoc[_» more&period;&period;&period;_]#

== Return Value

* a reference to `&ast;this`, after incrementing
* the value before incrementing, wrapped in `constrained`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| unused&semi; disambiguates this postfix overload from the prefix `operator&plus;&plus;()`
|===


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