std::bad_ex...n::operator=(3)
π NAME π
std::bad_exception::operator= β and yeah, the whole name is literally std::bad_exception::operator=, we're assigning one bad_exception into another, that's the entire gig bestie π
this page lives in the C++ Standard Libary manual (section 3, iykyk) π¦
β¨ SYNOPSIS β¨
okay so there are two flavors of this and which one you get depends on your C++ version, keep up:
until C++11:
bad_exception& operator=( const bad_exception& other ) throw();
since C++11:
bad_exception& operator=( const bad_exception& other ) noexcept;
Assigns the contents of other. simple as that, no cap π«Ά
and here's the extra little detail β this part is since C++11: if *this and other both have dynamic type std::exception then std::strcmp(what(), other.what()) == 0 after assignment. literally identical vibes after the copy π₯
π PARAMETERS π
otherβ anotherbad_exceptionobject to assign π
π RETURN VALUE π
*this. she hands herself right back to you, main character energy only π
β¨
mwah, that's the page bestie! it's from http://cppreference.com, dated 2024.06.10, and the header on this one was trimmed down to std::bad_ex...n::operator=(3) so don't come for me about the ellipsis, that's just how she's filed ππ
π¦ 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