Returns the negation of the wrapped value, reacting to ErrorPolicy on overflow.

Synopsis

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

[[nodiscard]]
constexpr
safe_int<decltype(‐value_), ErrorPolicy>
operator‐() const;

Return Value

the negated (and possibly promoted) wrapped value

Note

The return value should not be discarded.

Created with MrDocs