std::nested...ed_exception(3)

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

πŸ’– NAME πŸ’–

Okay bestie, welcome to std::nested...ed_exception(3) from the C++ Standard Libary manual β€” yes, that's literally how it's spelled at the top, and we are not fixing it πŸ’…. We're talking about std::nested_exception::nested_exception, the constructor itself. Main character energy only. ✨

πŸ¦‹ Synopsis πŸ¦‹

Here's the synopsis, lowkey a little line-wrap-cursed, but every detail is right here:

nested_exception() noexcept;
(1) (since C++11)
nested_exception( const nested_exception& other ) noexcept =
(2) (since C++11)
default;

And yes, that lonely default; at the bottom belongs to the copy constructor's = default; β€” the original page just wrapped it like that. πŸ’€

Constructs new nested_exception object. That's the whole sentence, and it ate. πŸ’…

  1. Default constructor. Stores an exception object obtained by calling std::current_exception() within the new nested_exception object. 🌈
  2. Copy constructor. Initializes the object with the exception stored in other. πŸ’œ

πŸŽ€ Parameters πŸŽ€

  • other β€” nested exception to initialize the contents with πŸŽ€

That's the whole parameter list, bestie. Iconic and concise. 🫢


Source/version check, fr fr: this page is from http://cppreference.com, dated 2024.06.10. Bye bestie, go construct your nested exceptions responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from