std::move_o...ly_function(3)

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

✨ 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 a std::function instance, and it's a public member function of std::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