brintos

brintos / llvm-project-archived public Read only

0
0
Text · 795 B · f10f4de Raw
45 lines · c
1// Header for PCH test cxx-typeid.cpp2 3#ifndef CXX_TYPEID_H4#define CXX_TYPEID_H5 6namespace std {7 8class type_info9{10public:11    virtual ~type_info();12 13    bool operator==(const type_info& rhs) const;14    bool operator!=(const type_info& rhs) const;15 16    bool before(const type_info& rhs) const;17    unsigned long hash_code() const;18    const char* name() const;19 20    type_info(const type_info& rhs);21    type_info& operator=(const type_info& rhs);22};23 24class bad_cast25{26public:27    bad_cast();28    bad_cast(const bad_cast&);29    bad_cast& operator=(const bad_cast&);30    virtual const char* what() const;31};32 33class bad_typeid34{35public:36    bad_typeid();37    bad_typeid(const bad_typeid&);38    bad_typeid& operator=(const bad_typeid&);39    virtual const char* what() const;40};41 42}  // std43 44#endif45