summaryrefslogtreecommitdiff
path: root/src/typeinfo
diff options
context:
space:
mode:
authoranonymous <local@localhost>2010-06-27 17:13:07 +0000
committeranonymous <local@localhost>2010-06-27 17:13:07 +0000
commit7ca18cb7c08bf92db5946a66e312678c480eb819 (patch)
tree22dfcc5cf05ecad955cd15d9feb952f204a4b32b /src/typeinfo
downloadlibcxxrt-7ca18cb7c08bf92db5946a66e312678c480eb819.tar.gz
libcxxrt-7ca18cb7c08bf92db5946a66e312678c480eb819.tar.bz2
libcxxrt-7ca18cb7c08bf92db5946a66e312678c480eb819.tar.xz
Initial import.
Diffstat (limited to 'src/typeinfo')
-rw-r--r--src/typeinfo24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/typeinfo b/src/typeinfo
new file mode 100644
index 0000000..cc064c2
--- /dev/null
+++ b/src/typeinfo
@@ -0,0 +1,24 @@
+namespace std
+{
+ /**
+ * Standard type info class. The layout of this class is specified by the
+ * ABI.
+ */
+ class type_info
+ {
+ public:
+ /** Virtual destructor. This class must have one virtual function to
+ * ensure that it has a vtable. */
+ virtual ~type_info();
+ bool operator==(const type_info &) const;
+ bool operator!=(const type_info &) const;
+ bool before(const type_info &) const;
+ const char* name() const;
+ type_info();
+ private:
+ type_info(const type_info& rhs);
+ type_info& operator= (const type_info& rhs);
+ const char *__type_name;
+ };
+}
+