Usermode/libc++ - Debug in cxa code, list emplace and iterators, general STL fixes
[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 #include <acess/sys.h>
10
11 namespace std {
12
13 type_info::~type_info()
14 {
15         // nop
16 }
17
18 bool type_info::operator==(const type_info& other) const
19 {
20         _SysDebug("type_info::operator== - '%s' == '%s'", this->__type_name, other.__type_name);
21         return this->__type_name == other.__type_name;
22 }
23
24 bool type_info::operator!=(const type_info& other) const
25 {
26         _SysDebug("type_info::operator!= - '%s' != '%s'", this->__type_name, other.__type_name);
27         return this->__type_name != other.__type_name;
28 }
29
30 bool type_info::before(const type_info& other) const
31 {
32         _SysDebug("type_info::before - '%s' < '%s'", this->__type_name, other.__type_name);
33         return this->__type_name < other.__type_name;
34 }
35
36 const char *type_info::name() const
37 {
38         return this->__type_name;
39 }
40
41 // Private
42 type_info::type_info(const type_info& rhs):
43         __type_name(rhs.__type_name)
44 {
45 }
46 type_info& type_info::operator=(const type_info& rhs)
47 {
48         __type_name = rhs.__type_name;
49         return *this;
50 }
51
52
53 };      // namespace std

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