Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP C++ User Documentation

 

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
About PDF files: The PDF files on this site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software on your system, you may download it from Adobe's website.
Privacy statement Using this site means you accept its terms C++ support
© 2008 Hewlett-Packard Development Company, L.P.