std::bad_ex...ad_exception(3)
π NAME π
okay bestie, welcome to the std::bad_exception::bad_exception page β it's from the C++ Standard Libary (the header really spells it βLibaryβ, not me π) and it lives in section 3. The page title is the very cursed-looking std::bad_ex...ad_exception(3). The NAME line is literally std::bad_exception::bad_exception - std::bad_exception::bad_exception, because sometimes the manual page is just like that. ππ
β¨ Synopsis β¨
okay so here's the synopsis, verbatim, because we do not mess with code, periodt:
bad_exception() throw(); (until
C++11)
bad_exception() noexcept; (since
C++11)
bad_exception( const bad_exception& other ) (1)
(until C++11)
throw(); (2)
bad_exception( const bad_exception& other )
(since C++11)
noexcept;
Constructs new bad_exception object. That's the whole assignment. π
Two constructor moments, and yes the numbers match the page:
- Default constructor β
what()returns an implementation-defined string. That's the exact wording; no cap. π - Copy constructor β initializes the object with the contents of
other. If*thisandotherboth have dynamic typestd::bad_exceptionthenstd::strcmp(what(), other.what()) == 0. (since C++11) β¨
π Parameters π
otherβbad_exceptionobject to initialize with. π«Ά
xoxo, bestie π β source/version: http://cppreference.com, date: 2024.06.10, footer label: std::bad_ex...ad_exception(3). byeee! π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms