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 β€” the what() 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, and std::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