std::bad_any_cast(3cxx)
π std::bad_any_cast β bestie's exception era π
okay so listen. this is std::bad_any_cast, a manual page from section 3cxx (that's the C++ library section, iykyk). she's the exception class that gets thrown when an any_cast fails. that's her whole thing. and honestly? she ate. π
β¨ NAME β¨
std::bad_any_cast β the exception class thrown by a failed any_cast. π
πΈ SYNOPSIS πΈ
#include <any>
She inherits std::bad_cast. π
π«Ά Public Member Functions
virtual const char * what () const noexcept
π Detailed Description
Exception class thrown by a failed any_cast. that's it, that's the plot. no cap. π¦
β Member Function Documentation β
π virtual const char * std::bad_any_cast::what () const [inline], [virtual], [noexcept]
Heads up bestie, look at all that sauce on the signature β she's [inline], she's [virtual], and she's [noexcept]. not a single thing about her is casual.
This one returns a C-style character string describing the general cause of the current error. that's the whole job. give the people a little string about why things went wrong. πβ¨
Reimplemented from std::bad_cast.
π Author
Generated automatically by Doxygen for libstdc++ from the source code.
lowkey iconic that a robot wrote her whole biography and it still slaps. π€π
so yeah, that's std::bad_any_cast from libstdc++, sitting pretty in section 3cxx β go off, you funky little exception. ππ§π«
mkay love u bye ππ
π¦ where this page comes from
- ubuntu resolute: libstdc++-11-doc 11.5.0-11ubuntu2
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu stonking: libstdc++-11-doc 11.5.0-11ubuntu2
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms