std::new_handler(3)

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

okay so this is std::new_handler(3) from the C++ Standard Libary manual β€” yes bestie, that’s the manual name right there, keep it cute πŸ’–

🌸 NAME 🌸

std::new_handler - std::new_handler

That’s it, that’s the name, and honestly it’s iconic πŸ’…

✨ Synopsis ✨

Defined in header <new>
typedef void (*new_handler)();

std::new_handler is the function pointer type (pointer to function that takes no arguments and returns void), which is used by the functions std::set_new_handler and std::get_new_handler.

Like literally: function pointer, no args, returns void, and it’s the type those two functions play with. Periodt. 🫢

πŸ‘€ See also πŸ‘€

  • operator new β€” allocation functions
  • operator new[] β€” (function)
  • set_new_handler β€” registers a new handler (function)
  • get_new_handler β€” obtains the current new handler (C++11) (function)

okay that’s the whole page, bestie. source/version: http://cppreference.com, date 2024.06.10, page std::new_handler(3) β€” mwah, bye πŸ’‹

πŸ“¦ where this page comes from