std::move_o...ly_function(3)
β¨ NAME β¨
okay so you're on the std::move_o...ly_function(3) page in the C++ Standard Libary manual β welcome, bestie, we're doing destructor lore today. π
std::move_only_function::~move_only_functionβ that's the name, and the NAME line is literally the same thing twice:std::move_only_function::~move_only_function.
π¦ Synopsis π¦
~move_only_function(); (since C++23)
π See also π
destructorβ destroys astd::functioninstance, and it's a public member function ofstd::function<R(Args...)>. bestie said "related destructor business," and honestly, same vibe. π«Ά
π What it does π
This destructor literally destroys the std::move_only_function object. If the std::move_only_function is not empty, its target is also destroyed β both gone, no cap. ππ₯
it's giving cleanup era. the object leaves the group chat, and if it had a target, that target is leaving too. periodt. π
mwah π β source: http://cppreference.com, page/version: std::move_o...ly_function(3), date: 2024.06.10. bye bestie, go destroy your move-only functions responsibly π«Άβ¨
π¦ 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