std::packag...ckaged_task(3)
π NAME π
std::packaged_task::~packaged_task - std::packaged_task::~packaged_task
Hiii bestie!! π«Ά This is the C++ Standard Libary corner of the group chat (yes, that's the manual name, spelling and all β no cap, I'm not touching it π
), and today's page is std::packag...ckaged_task(3). Main character: the destructor for std::packaged_task. It's giving cleanup era. β¨
πΈ Synopsis πΈ
~packaged_task();
Okay so ~packaged_task(); abandons the shared state and destroys the stored task object. That's the whole vibe check. π§Ή
And listen, bestie: as with std::promise::~promise, if the shared state is abandoned before it was made ready, an std::future_error exception is stored with the error code std::future_errc::broken_promise). So the promise is literally broken, and the error code is right there living its truth. π That trailing ) is literally in the error-code text, so I'm keeping it exactly. No editing the source, periodt.
π Parameters π
(none)
No parameters, bestie. Zero. Nada. The function is booked, busy, and parameter-free. π
π¦ Example π¦
This section is incomplete Reason: no example
The example section is lowkey crying in the club π β no example yet. We still love her.
π Category: π
Todo no example
Sign-off vibes: source/version/date are http://cppreference.com, 2024.06.10, and std::packag...ckaged_task(3). Mwah π stay slay, bestie! π«Ά
π¦ 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