std::nested...::operator=(3)

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

πŸ’… NAME πŸ’…

Hey bestie! Welcome to the std::nested...::operator=(3) manual page, hanging out under C++ Standard Libary (yes, that's the spelling from the header, we're keeping it πŸ’–). This whole page is about std::nested_exception::operator=, and the NAME line is literally std::nested_exception::operator= - std::nested_exception::operator= β€” so yes, we're saying it twice, and yes, it's iconic.

πŸ¦‹ Synopsis πŸ¦‹

Okay so here's the signature, no cap:

nested_exception& operator=( const nested_exception& other ) noexcept

(since C++11)

And it's giving defaulted-assignment energy:

= default;

The assignment replaces the stored exception with the one held in other. Periodt.

πŸŽ€ Parameters πŸŽ€

  • other β€” the nested exception to replace the contents with. That's the whole assignment bestie, it's giving "replace the contents, keep the exception" ✨.

πŸ’– Return value πŸ’–

  • *this β€” yup, it hands back *this, as one does πŸ’….

Cute little sign-off before we close the group chat: the footer source is http://cppreference.com, the date stamp is 2024.06.10, and the manual tag is std::nested...::operator=(3). Bye bestie, go assign something iconic πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from