std::bad_weak_ptr(3cxx)
π¦ std::bad_weak_ptr β like, the NAME section, bestie π¦
okay so <pink>std::bad_weak_ptr</pink> is an exception that shared_ptr might possibly throw. that's the whole vibe. iykyk. π
this one lives in manual section 3cxx (the libstdc++ corner of the universe, we love her). π
β¨ SYNOPSIS β¨
you gotta pull her in first, no cap:
#include <memory>
Inherits: std::exception β she's part of the family tree, main character energy fr. π
πΈ Public Member Functions πΈ
virtual char const * what () const noexceptβ yeah that's the one, the little describing-herself function, more on her below π«Ά
π Detailed Description π
literally just this: an exception possibly thrown by shared_ptr. that's it, that's the whole description bestie, she's a mystery but an iconic one π΅οΈββοΈβ¨
π Member Function Documentation π
β virtual char const * std::bad_weak_ptr::what () const [virtual], [noexcept]
so this is the function, right, and here's what she does:
returns a C-style character string that describes the general cause of the current error. classic. very demure. very mindful. π
- Reimplemented from
std::exceptionβ she's over here doing her own version of a thing her parent class already had, slay honestly π
ngl the[virtual]and[noexcept]bits aren't decoration β they're literally part of the signature, so don't come for me, copy it exactly fr fr π«Ά
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. β so like, a robot wrote this, not a human, and honestly the robot ate π€β¨
and that's the page!! π this lil beauty is from libstdc++, dated std::bad_weak_ptr(3cxx) in the footer, and yes the header at the very top says std::bad_weak_ptr(3cxx) too β we stayed consistent, we stayed cute, periodt. π¦πΈπ
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms