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.

Public Functions

inline explicit OverflowError(char const *message)#
inline explicit OverflowError(std::string const &message)#
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.

Public Functions

inline explicit UnderflowError(char const *message)#
inline explicit UnderflowError(std::string const &message)#