Standard library header <typeinfo>
From cppreference.net
C++
Standard library headers
Dieser Header ist Teil der Type-Support Bibliothek.
Inhaltsverzeichnis |
Klassen
|
enthält Typinformationen, die Klasse, die vom typeid-Operator zurückgegeben wird
(Klasse) |
|
|
Exception, die ausgelöst wird, wenn ein Argument in einem
typeid-Ausdruck
null ist
(Klasse) |
|
|
Exception, die durch einen ungültigen
dynamic_cast
-Ausdruck ausgelöst wird, d.h. wenn ein Cast eines Referenztyps fehlschlägt
(Klasse) |
Übersicht
// alle freistehend namespace std { class type_info; class bad_cast; class bad_typeid; }
Klasse std::type_info
namespace std { class type_info { public: virtual ~type_info(); constexpr bool operator==(const type_info& rhs) const noexcept; bool before(const type_info& rhs) const noexcept; size_t hash_code() const noexcept; const char* name() const noexcept; type_info(const type_info&) = delete; type_info& operator=(const type_info&) = delete; }; }
Klasse std::bad_cast
namespace std { class bad_cast : public exception { public: // siehe Beschreibung für die Spezifikation der speziellen Elementfunktionen constexpr const char* what() const noexcept override; }; }
Klasse std::bad_typeid
namespace std { class bad_typeid : public exception { public: // siehe Beschreibung für die Spezifikation der speziellen Elementfunktionen constexpr const char* what() const noexcept override; }; }