Namespaces
Variants

std::bad_exception:: bad_exception

From cppreference.net
Utilities library
(1)
bad_exception ( ) throw ( ) ;
(bis C++11)
bad_exception ( ) noexcept ;
(seit C++11)
(constexpr seit C++26)
(2)
bad_exception ( const bad_exception & other ) throw ( ) ;
(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 einen implementierungsdefinierten String 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