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_SAFElength_error (const length_error &)=defaultlength_error (const string &__arg) _GLIBCXX_TXN_SAFElength_error (length_error &&)=defaultlength_error & operator= (const length_error &)=defaultlength_error & operator= (length_error &&)=defaultvirtual 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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms