std::nested...::nested_ptr(3)

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

πŸ’… 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