std::overflow_error(3cxx)
π NAME π
okay so bestie, the name is literally std::overflow_error. that's the whole NAME section β short, iconic, periodt. this page is from the 3cxx manual, and yes it's giving βC++ exception that knows math went wrongβ energy. π
β¨ SYNOPSIS β¨
#include <stdexcept>
Inherits std::runtime_error. no cap, that's the inheritance vibe. π¦
π Public Member Functions π
here's the whole roster, bestie β signatures copied exactly, because we do not mess with code:
overflow_error (const char *) _GLIBCXX_TXN_SAFEβ a constructor signature, exactly as written.overflow_error (const overflow_error &)=defaultβ the copy constructor, defaulted.overflow_error (const string &__arg) _GLIBCXX_TXN_SAFEβ another constructor signature, exactly as written.overflow_error (overflow_error &&)=defaultβ the move constructor, defaulted.overflow_error & operator= (const overflow_error &)=defaultβ copy assignment, defaulted.overflow_error & operator= (overflow_error &&)=defaultβ move assignment, defaulted.virtual const char * what () const noexceptβ thewhat()member function signature.
πΈ Detailed Description πΈ
okay so the tea: std::overflow_error is thrown to indicate arithmetic overflow. that's it, that's the whole job. it's giving βmath said noβ energy, and honestly? iconic. π₯
π Member Function Documentation π
π¦ the what() function β inherited and iconic π¦
the signature is:
virtual const char * std::runtime_error::what () const [virtual],
[noexcept], [inherited]
so what does it do? it returns a C-style character string describing the general cause of the current error β the same string passed to the ctor. iykyk, bestie. π
- 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. so yeah, not a mysterious human author β Doxygen did that. π€π
okay that's the whole page bestie π«Ά β this was the std::overflow_error(3cxx) manual page, source/version vibes: libstdc++. the original footer didn't list a date, so i'm not inventing one π. mwah, bye! π
π¦ 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