Public Member Functions | |
Result (T value, bool overflowed) | |
Result (T value, OverflowKind overflowed) | |
bool | operator== (Result other) const |
std::optional< T > | valueChecked () const |
T | valueWrapping () const |
bool | overflowed () const |
bool | divideByZero () const |
|
inline |
Returns the result as if the arithmetic were performed as wrapping arithmetic.
DivideByZero | if the operation was a divide by zero. |