Mike Stump | 333dfe9 | 2009-11-16 19:34:15 +0000 | [diff] [blame] | 1 | namespace std { |
2 | class type_info { | ||||
Mike Stump | 912b662 | 2009-11-16 19:48:50 +0000 | [diff] [blame] | 3 | public: |
Mike Stump | 333dfe9 | 2009-11-16 19:34:15 +0000 | [diff] [blame] | 4 | virtual ~type_info(); |
5 | const char* name() const { return __name; } | ||||
6 | bool operator==(const type_info& __arg) const { | ||||
7 | return __name == __arg.__name; | ||||
8 | } | ||||
9 | |||||
10 | bool operator!=(const type_info& __arg) const { | ||||
11 | return !operator==(__arg); | ||||
12 | } | ||||
13 | protected: | ||||
14 | const char *__name; | ||||
15 | }; | ||||
16 | } |