[#mp_units-utility-safe_int-07-operator_inc-0ea]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int]::operator&plus;&plus;
:relfileprefix: ../../../
:mrdocs:

Increment operators

== Synopses

Declared in `&lt;mp&hyphen;units&sol;utility&sol;safe&lowbar;int&period;h&gt;`

Pre&hyphen;increments the wrapped value, reacting to `ErrorPolicy` on overflow&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int]&
xref:mp_units/utility/safe_int-07/operator_inc-08.adoc[operator&plus;&plus;]();
----

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

Post&hyphen;increments the wrapped value, reacting to `ErrorPolicy` on overflow&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int]
xref:mp_units/utility/safe_int-07/operator_inc-0ef.adoc[operator&plus;&plus;](int tag);
----

[.small]#xref:mp_units/utility/safe_int-07/operator_inc-0ef.adoc[_» more&period;&period;&period;_]#

== Return Value

* a reference to `&ast;this`, after the increment
* a copy of `&ast;this`, before the increment

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| unused tag parameter that distinguishes this postfix form from the prefix `operator&plus;&plus;()`
|===


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