Namespaces
Variants

std::bad_exception::bad_exception

Von de.cppreference.net
 
 
Hilfsbibliothek
Sprachunterstützung
Typunterstützung (Basistypen, RTTI)
Bibliotheks-Feature-Test-Makros (C++20)
Programmhilfsmittel
Variadische Funktionen
Coroutine-Unterstützung (C++20)
Vertragsunterstützung (C++26)
Drei-Wege-Vergleich
(C++20)
(C++20)(C++20)(C++20)    
(C++20)(C++20)(C++20)

Allgemeine Hilfsmittel
Relationale Operatoren (in C++20 veraltet)
Ganzzahlvergleichsfunktionen
(C++20)(C++20)(C++20)    
(C++20)
Tausch und Typoperationen
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Gemeinsame Vokabular-Typen
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
 
 
bad_exception() throw();
(1) (bis C++11)
bad_exception() noexcept;
(seit C++11)
(constexpr seit C++26)
bad_exception( const bad_exception& other ) throw();
(2) (bis C++11)
bad_exception( const bad_exception& other ) noexcept;
(seit C++11)
(constexpr seit C++26)

Konstruiert ein neues bad_exception Objekt.

1) Standardkonstruktor. what() gibt eine implementationsdefinierte Zeichenkette zurück.
2) Kopierkonstruktor. Initialisiert das Objekt mit den Inhalten von other. Wenn *this und other beide den dynamischen Typ std::bad_exception haben, dann std::strcmp(what(), other.what()) == 0(seit C++11).

Parameter

other - bad_exception Objekt zur Initialisierung