[#mp_units-quantity-01-operator_inc-0e] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::operator++ :relfileprefix: ../../ :mrdocs: Increment operators == Synopses Declared in `<mp‐units/framework/quantity.h>` Pre‐increments the numerical value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:mp_units/quantity-01.adoc[quantity]& xref:mp_units/quantity-01/operator_inc-0c.adoc[operator++]() & requires requires(rep& v) { { ++v } ‐> std::same_as<rep&>; }; ---- [.small]#xref:mp_units/quantity-01/operator_inc-0c.adoc[_» more..._]# Post‐increments the numerical value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/QuantityOf.adoc[QuantityOf<quantity_spec>] auto xref:mp_units/quantity-01/operator_inc-07.adoc[operator++](int unused_tag) requires requires(rep& v) { { v++ } ‐> std::common_with<rep>; }; ---- [.small]#xref:mp_units/quantity-01/operator_inc-07.adoc[_» more..._]# == Return Value * `*this`, after the increment. * A quantity holding the value of `*this` before the increment. == Parameters [cols="1,4"] |=== | Name| Description | *unused_tag* | An unused tag parameter that distinguishes this overload as the post‐increment operator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#