std::underflow_error(3cxx)
π std::underflow_error π
okay bestie, this is the 3cxx manual page for std::underflow_error, and itβs literally the exception you reach for when arithmetic underflow happens. no cap. π«Ά
πΈ NAME πΈ
std::underflow_error β the arithmetic-underflow exception, main character edition β¨
π SYNOPSIS π
#include <stdexcept>
Inherits std::runtime_error.
π¦ Public Member Functions π¦
underflow_error (const char *) _GLIBCXX_TXN_SAFEβ constructor that takes a C-string, with that exact_GLIBCXX_TXN_SAFEmarker πunderflow_error (const string &__arg) _GLIBCXX_TXN_SAFEβ constructor that takes aconst string &__arg, also marked_GLIBCXX_TXN_SAFEβ¨underflow_error (const underflow_error &)=defaultβ copy constructor, defaulted, as iconic as ever πunderflow_error (underflow_error &&)=defaultβ move constructor, defaulted, we love a clean handoff π¦underflow_error & operator= (const underflow_error &)=defaultβ copy assignment, defaulted πΈunderflow_error & operator= (underflow_error &&)=defaultβ move assignment, defaulted πvirtual const char * what () const noexceptβ the inherited explanation-getter,virtualandnoexceptβ
π Detailed Description π
Thrown to indicate arithmetic underflow. thatβs the whole vibe. π§
π Member Function Documentation π
π virtual const char * std::runtime_error::what () const [virtual], [noexcept], [inherited] π
Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor). yup, itβs giving βtell them what went wrongβ energy. π
- Reimplemented from
std::exception. - Reimplemented in
std::filesystem::filesystem_error, andstd::experimental::filesystem::v1::filesystem_error.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. π iconic automation behavior, honestly.
okay thatβs the whole page, bestie. cute sign-off time: source/version is libstdc++, and the footer doesnβt show a date on this page β no invented date here, fr fr. π«Άβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms