Debian Codegraph @

headers/typeinfo

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_TYPEINFO_H
17 #define CPPREFERENCE_TYPEINFO_H
18
19 #include <exception>
20
21 namespace std {
22
23 class type_info {
24 public:
25 virtual ~type_info();
26
27 bool operator==(const type_info& rhs) const;
28 bool operator!=(const type_info& rhs) const;
29
30 bool before(const type_info& rhs) const;
31 #if CPPREFERENCE_STDVER>= 2011
32 size_t hash_code() const;
33 #endif
34 const char* name() const;
35 };
36
37 class bad_cast : public exception {
38 public:
39 bad_cast();
40 };
41
42 class bad_typeid : public exception {
43 public:
44 bad_typeid();
45 };
46
47 } // namespace std
48
49 #endif // CPPREFERENCE_TYPEINFO_H