std::out_of_range(3cxx)

πŸ’– NAME πŸ’–

okay bestie, welcome to the 3cxx manual page for std::out_of_range β€” the main character of this whole page, no cap. πŸ’…

✨ SYNOPSIS ✨

#include <stdexcept>

It inherits std::logic_error β€” yes queen, that's the parent class, periodt. 🫢

πŸ’… Public Member Functions πŸ’…

Here's the full roster, nothing skipped, nothing edited:

  • out_of_range (const char *) _GLIBCXX_TXN_SAFE
  • out_of_range (const out_of_range &)=default
  • out_of_range (const string &__arg) _GLIBCXX_TXN_SAFE
  • out_of_range (out_of_range &&)=default
  • out_of_range & operator= (const out_of_range &)=default
  • out_of_range & operator= (out_of_range &&)=default
  • virtual const char * what () const noexcept

🌸 Detailed Description 🌸

Real talk: this represents an argument whose value is not within the expected range β€” the original gives e.g., boundary checks in basic_string as the vibe. πŸŽ€

πŸ¦‹ Member Function Documentation πŸ¦‹

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

This inherited one returns a C-style character string describing the general cause of the current error β€” literally the same string passed to the ctor. It's reimplemented from std::exception, and reimplemented in std::future_error. ✨

πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code. Slay, automation. πŸ€–βœ¨


mwah πŸ’‹ β€” source/version: libstdc++; page: std::out_of_range(3cxx); date: the footer doesn't show a separate date here, so I'm not making one up, bestie. 🫢

πŸ“¦ where this page comes from