std::function::~function(3)

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

okay bestie, welcome to std::function::~function(3) from the C++ Standard Libary manual πŸ’… this is the destructor page and it’s lowkey iconic in its simplicity.

✨ NAME ✨

std::function::~function β€” yep, that’s literally std::function::~function, the name ate and left no crumbs πŸ“

🌸 Synopsis 🌸

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

So what’s the vibe? It destroys the std::function instance. And if the std::function is not empty, its target is destroyed also. That’s the whole plot, no extra twists 🫢

πŸ‘€ See also πŸ‘€

  • destructor (C++23) β€” destroys a std::move_only_function object (public member function of std::move_only_function)

πŸ’Œ source: http://cppreference.com Β· version/date: 2024.06.10 β€” that’s the footer, bestie, and we’re out. Go destroy your targets and stay iconic πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from