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_SAFE marker πŸ’…
  • underflow_error (const string &__arg) _GLIBCXX_TXN_SAFE β€” constructor that takes a const 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, virtual and noexcept ⭐

πŸ’– 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, and std::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