Increment operators
Synopses
Declared in <mp‐units/framework/quantity.h>
Pre‐increments the numerical value.
constexpr
quantity&
operator++() &
requires requires(rep& v) {
{ ++v } ‐> std::same_as<rep&>;
};
Post‐increments the numerical value.
[[nodiscard]]
constexpr
QuantityOf<quantity_spec> auto
operator++(int unused_tag)
requires requires(rep& v) {
{ v++ } ‐> std::common_with<rep>;
};
Return Value
-
*this, after the increment. -
A quantity holding the value of
*thisbefore the increment.
Parameters
Name |
Description |
unused_tag |
An unused tag parameter that distinguishes this overload as the post‐increment operator. |
Created with MrDocs