std::bad_ex...ad_exception(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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:

  1. Default constructor β€” what() returns an implementation-defined string. That's the exact wording; no cap. πŸ™ˆ
  2. Copy constructor β€” initializes the object with the contents of other. If *this and other both have dynamic type std::bad_exception then std::strcmp(what(), other.what()) == 0. (since C++11) ✨

πŸŽ€ Parameters πŸŽ€

  • other β€” bad_exception object 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