Namespaces
Variants

std::bad_exception::operator=

Von de.cppreference.net
 
 
Dienstprogrammbibliothek
Sprachunterstützung
Typunterstützung (Basistypen, RTTI)
Bibliotheks-Feature-Test-Makros (C++20)
Programmdienstprogramme
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 Dienstprogramme
Relationale Operatoren (veraltet in C++20)
Ganzzahlvergleichsfunktionen
(C++20)(C++20)(C++20)    
(C++20)
SwapSwapTypoperationen
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Allgemeine Vokabular-Typen
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



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

Weist den Inhalt von other zu. Wenn *this und other beide den dynamischen Typ std::exception haben, dann std::strcmp(what(), other.what()) == 0 nach der Zuweisung.(seit C++11)

Parameter

other - ein weiteres bad_exception Objekt zur Zuweisung

Rückgabewert

* this .