VMS Help
CXXLSTD, Runtime Support, bad_typeid

 *Conan The Librarian

 			   Standard C++	Library

 NAME

   bad_typeid - defines the type	of object thrown by the	implementation
   as an exception to report a	 null pointer in a typeid expression.

 SYNOPSIS

   #include <typeinfo>

   namespace std	{
     class bad_typeid : public exception	{
     public:
       bad_typeid() throw();
       bad_typeid(const bad_typeid&) throw();
       bad_typeid& operator=(const bad_typeid&) throw();
       virtual ~bad_typeid() throw();
       virtual const char* what() const throw();
     };
   }

 DESCRIPTION

   bad_typeid() throw();

   This function	constructs an object of	class bad_typeid.

   bad_typeid(const bad_typeid&)	throw();
   bad_typeid& operator=(const bad_typeid&) throw();

   These	functions copy an object of class bad_typeid.

   virtual const	char* what() const throw();

   what() returns a string providing information	about the error.  The
   string returned by what() is	implementation defined.

 SEE ALSO

   exception, typeid

 STANDARDS CONFORMANCE
   ANSI X3J16/ISO WG21 Joint C++	Committee
  Close     Help