Decrement operators
Synopses
Declared in <mp‐units/utility/safe_int.h>
Pre‐decrements the wrapped value, reacting to ErrorPolicy on overflow.
constexpr
safe_int&
operator‐‐();
Post‐decrements the wrapped value, reacting to ErrorPolicy on overflow.
constexpr
safe_int
operator‐‐(int tag);
Return Value
-
a reference to
*this, after the decrement -
a copy of
*this, before the decrement
Parameters
Name |
Description |
tag |
unused tag parameter that distinguishes this postfix form from the prefix |
Created with MrDocs