Name

underflow_error class — Arithmetic underflow

Synopsis

class underflow_error : public runtime_error {
public:
  explicit underflow_error(const string& what_arg);
};
image with no caption

The underflow_error class can be used for arithmetic underflow. Note that underflow in most arithmetic expressions has undefined behavior; an implementation might throw underflow_error, but there is no guarantee that it will throw this or any other exception.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.