Math Utils#
-
class OverflowError : public std::runtime_error#
Exception thrown when an integer cast would result in overflow.
This exception is thrown by the cast() function when the source value exceeds the maximum representable value of the target type.
-
class UnderflowError : public std::runtime_error#
Exception thrown when an integer cast would result in underflow.
This exception is thrown by the cast() function when the source value is less than the minimum representable value of the target type.