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 πŸŽ€πŸ’œ