Merge branch 'master' of git://ted.mutabah.net/acess2
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / typeinfo.cc
1 /*
2  * Acess2 C++ Library
3  * - By John Hodge (thePowersGang)
4  *
5  * typeinfo.cc
6  * - typeid and dynamic_cast
7  */
8 #include <typeinfo>
9
10 namespace std {
11
12 type_info::~type_info()
13 {
14         // nop
15 }
16
17 bool type_info::operator==(const type_info& other) const
18 {
19         return this->__type_name == other.__type_name;
20 }
21
22 bool type_info::operator!=(const type_info& other) const
23 {
24         return this->__type_name != other.__type_name;
25 }
26
27 bool type_info::before(const type_info& other) const
28 {
29         return this->__type_name < other.__type_name;
30 }
31
32 const char *type_info::name() const
33 {
34         return this->__type_name;
35 }
36
37 // Private
38 type_info::type_info(const type_info& rhs):
39         __type_name(rhs.__type_name)
40 {
41 }
42 type_info& type_info::operator=(const type_info& rhs)
43 {
44         __type_name = rhs.__type_name;
45         return *this;
46 }
47
48
49 };      // namespace std
50

UCC git Repository :: git.ucc.asn.au