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 aNULLpointer in atypeidexpression 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
- 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