std::shared...ared_future(3)

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

πŸ’… std::shared...ared_future(3) πŸ’…

okay so this page is from the C++ Standard Libary manual β€” yes, spelled exactly like that here, and we're not fixing it, periodt 🫢 β€” and it's all about the destructor for std::shared_future.

🌸 NAME 🌸

std::shared_future::~shared_future - std::shared_future::~shared_future

✨ Synopsis ✨

~shared_future();  (since C++11)

If *this is the last object referring to the shared state, it destroys the shared state. Otherwise it does nothing. That's the whole vibe check, bestie πŸ¦‹

Lowkey important: it only destroys the shared state when *this is the last object referring to it; otherwise, nothing happens. ✨

mwah πŸ’‹ β€” source/version cuties: http://cppreference.com, dated 2024.06.10, and the page is std::shared...ared_future(3). byeee πŸŽ€

πŸ“¦ where this page comes from