United States    
COMPAQ STORE | PRODUCTS | SERVICES | SUPPORT
| CONTACT US | SEARCH
C++
bad_typeid (3C++std) - Tru64 UNIX
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
  

1.800.AT.COMPAQ

privacy and legal statement