Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<typeinfo>
Include the standard header <typeinfo> to define several types associated with the
type-identification operator typeid, which yields information about both static and dynamic
types.
namespace std {
class type_info;
class bad_cast;
class bad_typeid;
};
bad_cast
class bad_cast : public exception {
};
The class describes an exception thrown to indicate that a dynamic cast expression, of the
form:
dynamic_cast<type>(expression)
generated a null pointer to initialize a reference. The value returned by what() is an
implementation-defined C string. None of the member functions throw any exceptions.
bad_typeid
class bad_typeid : public exception {
};
The class describes an exception thrown to indicate that a typeid operator encountered a null
pointer. The value returned by what() is an implementation-defined C string. None of the
member functions throw any exceptions.
type_info
class type_info {
public:
virtual ~type_info();