Namespaces
Variants

std::bad_exception:: operator=

From cppreference.net
Utilities library
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. Falls * this und other beide den dynamischen Typ std::exception haben, dann gilt std:: strcmp ( what ( ) , other. what ( ) ) == 0 nach der Zuweisung. (seit C++11)

Parameter

other - ein weiteres bad_exception Objekt zur Zuweisung

Rückgabewert

* this .