typeinfo

来自「Montavista Linux 下的多平台编译软件xdc」· 代码 · 共 67 行

TXT
67
字号
/*****************************************************************************//* typeinfo  v6.0.3                                                          *//* Copyright (c) 1996-2006 Texas Instruments Incorporated                    *//*****************************************************************************/#if __EXCEPTIONS#define THROW(throw_spec) throw(throw_spec)#define THROW_NOTHING() throw()#else /* !__EXCEPTIONS */#define THROW(throw_spec) /* Nothing. */#define THROW_NOTHING() /* Nothing. */#endif /* __EXCEPTIONS */#ifndef _TYPEINFO#define _TYPEINFO#ifndef __embedded_cplusplus#include <stdexcept>namespace std {#if __EXCEPTIONS   class bad_cast : public exception {      public:	 bad_cast() throw();	 bad_cast(const bad_cast&) throw();	 bad_cast& operator=(const bad_cast&) throw();	 virtual ~bad_cast() throw();	 virtual const char* what() const throw();   };   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();   };#endif /* __EXCEPTIONS */#pragma define_type_info   class type_info    {      public:	 virtual ~type_info();	 bool operator==(const type_info& rhs) const;	 bool operator!=(const type_info& rhs) const;	 bool before( const type_info& rhs) const;	 const char* name() const;      protected:	 type_info(const type_info& rhs);      private:	 type_info& operator=(const type_info& rhs);#ifdef __EDG_IA64_ABI  private:    const char *__type_name;#endif /* ifdef __EDG_IA64_ABI */   };}#endif /* __embedded_cplusplus */#endif /*_TYPEINFO */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?