underflow_error class — Arithmetic underflow
class underflow_error : public runtime_error { public: explicit underflow_error(const string& what_arg); };
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.