mp_units::utility::safe_int::operator++

Increment operators

Synopses

Declared in <mp-units/utility/safe_int.h>

Pre-increments the wrapped value, reacting to ErrorPolicy on overflow.

constexpr
safe_int&
operator++();
» more...

Post-increments the wrapped value, reacting to ErrorPolicy on overflow.

constexpr
safe_int
operator++(int tag);
» more...

Return Value

  • a reference to *this, after the increment
  • a copy of *this, before the increment

Parameters

NameDescription
tagunused tag parameter that distinguishes this postfix form from the prefix operator++()