std::length_error(3cxx)

🌸 NAME 🌸

std::length_error β€” okay bestie, this is the page for std::length_error, and we're folding in the fact that it comes from the 3cxx manual right up top πŸ’… No awkward header repeat, just vibes and facts.

✨ SYNOPSIS ✨

#include <stdexcept>

Inherits std::logic_error.

πŸŽ€ Public Member Functions πŸŽ€

Here’s the whole roster, straight from the source β€” no invented extras, just the signatures:

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

πŸ“ Detailed Description πŸ“

Thrown when an object is constructed that would exceed its maximum permitted size β€” that’s the whole mood. The page gives (e.g., a basic_string instance) as the example, so like, if your string is doing the absolute most and going past its max, this exception is having its main character moment. πŸ˜­πŸ’–

πŸ” Member Function Documentation πŸ”

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

Okay so this what() is inherited, it’s virtual, and it’s noexcept β€” those tags are not decoration, bestie. It returns a C-style character string describing the general cause of the current error (the same string passed to the ctor). Slay.

Reimplemented from std::exception.

Reimplemented in std::future_error.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Not me hand-writing lore β€” the tool did that.


Sign-off time: this page is from libstdc++, and its footer says std::length_error(3cxx). Date: there isn’t one shown on this page, bestie β€” so no date to report, just that source/version vibe. πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from