std::bad_typeid(3cxx)

πŸ’– NAME πŸ’–

okay so first things first: this is the manual page for std::bad_typeid(3cxx) ✨ and the whole mood is one very specific exception:

  • std::bad_typeid β€” Thrown when a NULL pointer in a typeid expression is used. πŸ’€

✨ SYNOPSIS ✨

bestie, to use this you include:

#include <typeinfo>

and it Inherits std::exception. 🫢

πŸŽ€ Public Member Functions πŸŽ€

  • virtual const char * what () const noexcept β€” yes, that's the whole public member function list, slay.

🌸 Detailed Description 🌸

so std::bad_typeid is literally the exception that gets thrown when a NULL pointer in a typeid expression is used. no cap, that's the whole situation 😭

πŸ¦‹ Member Function Documentation πŸ¦‹

πŸ’… what() πŸ’…

here's the exact signature, character for character:

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

what it does: returns a C-style character string describing the general cause of the current error. ✨

also: reimplemented from std::exception. πŸ‘‘

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. That's the author tea πŸ“.

sign-off: this page comes from libstdc++ under the std::bad_typeid(3cxx) manual name, and the footer doesn't give a date, so I'm not inventing one β€” periodt πŸ’œ

πŸ“¦ where this page comes from