std::nested...::nested_ptr(3)
π std::nested...::nested_ptr(3) π
okay so bestie, welcome to the C++ Standard Libary manual page for std::nested_exception::nested_ptr β¨ (yes, the header spells it βLibaryβ β weβre keeping the facts exactly as they are, no cap π). Itβs giving very niche, very C++11, very βpointer to the stored exceptionβ energy. Letβs go π«Ά.
π NAME π
std::nested_exception::nested_ptr - std::nested_exception::nested_ptr π
(Thatβs literally the name and the one-line description matching each other. Iconic.)
β¨ Synopsis β¨
std::exception_ptr nested_ptr() const noexcept; (since C++11)
This one returns a pointer to the stored exception, if any πΈ.
π Parameters π
(none) π
Like⦠zero parameters. Nothing to pass. Main character no-args energy.
πΈ Return value πΈ
If thereβs an exception stored, you get a std::exception_ptr to the stored exception π. Otherwise? You get a default-initialized std::exception_ptr π«Ά.
cute little sign-off: this page is from http://cppreference.com, dated 2024.06.10, and itβs the std::nested...::nested_ptr(3) page β slay, bye bestie πβ¨π
π¦ 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