Debian Codegraph @

headers/typeindex

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_TYPEINDEX_H
17 #define CPPREFERENCE_TYPEINDEX_H
18
19 #if CPPREFERENCE_STDVER>= 2011
20 #include <typeinfo>
21
22 namespace std {
23
24 class type_index {
25 public:
26 type_index(const type_info& info);
27
28 bool operator==(const type_index& rhs) const;
29 bool operator!=(const type_index& rhs) const;
30 bool operator<(const type_index& rhs) const;
31 bool operator<=(const type_index& rhs) const;
32 bool operator> (const type_index& rhs) const;
33 bool operator>=(const type_index& rhs) const;
34
35 size_t hash_code() const;
36 const char* name() const;
37 };
38
39 } // namespace std
40
41 #endif // CPPREFERENCE_STDVER>= 2011
42
43 #endif // CPPREFERENCE_TYPEINDEX_H