std::nested...ed_exception(3)
π 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. π
- Default constructor. Stores an exception object obtained by calling
std::current_exception()within the newnested_exceptionobject. π - 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
- 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