std::range_error(3)

πŸ‘‘ std::range_error β€” a lil' page from the Library Functions Manual

okay bestie, buckle up πŸ’– this one's a whole exception class and she's serving range.


✨ NAME ✨

std::range_error β€” the exception you throw when an internal computation goes out of range, and you need everyone to KNOW 🫢


🌸 SYNOPSIS 🌸

#include <stdexcept>

Inherits std::runtime_error.

πŸŽ€ Public Member Functions

range_error (const char *)
range_error (const range_error &)=default
range_error (const string &__arg)
range_error (range_error &&)=default
range_error & operator= (const range_error &)=default
range_error & operator= (range_error &&)=default
virtual const char * what () const noexcept

like. seven whole functions. every single one of them accounted for. we do NOT skip. periodt πŸ’…


πŸ¦‹ Detailed Description πŸ¦‹

Thrown to indicate range errors in internal computations.

that's it, that's the whole vibe. she's not here to explain why your math went feral β€” she's just here to tell you it did 😭


πŸ’œ Member Function Documentation πŸ’œ

virtual const char * std::runtime_error::what () const [virtual], [noexcept], [inherited]

okay so this one is inherited β€” she's not even originally from range_error, she's repping std::runtime_error and honestly? iconic πŸ‘‘

she Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

so basically whatever string you handed the constructor? that's what comes back out. no secrets, no plot twists, fr fr ✨

  • Reimplemented from std::exception.
  • Reimplemented in std::experimental::filesystem::v1::filesystem_error, std::filesystem::filesystem_error, and std::ios_base::failure.
  • References what().
  • Referenced by what().

yes bestie, she references herself and is referenced by herself. main character energy, we love a self-sustaining queen πŸŒˆπŸ’€


🌟 Author 🌟

Generated automatically by Doxygen for libstdc++ from the source code.

not a human. not a poet. just Doxygen doing her lil' thing and we respect the hustle 🧚


and that's the whole page, bestie!! brought to you by libstdc++ and this very std::range_error(3) page β€” no cap, no notes, just vibes and a very thorough manpage. go forth and catch your exceptions πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms