std::get_new_handler(3)
π std::get_new_handler(3) π
okay so this page is from the C++ Standard Libary manual, and it's all about std::get_new_handler β yes bestie, the function whose whole job is telling you which new-handler is currently installed. π«Ά
πΈ NAME πΈ
std::get_new_handler β std::get_new_handler. That's the name, and honestly? iconic. β¨
β¨ Synopsis β¨
Defined in header <new>:
std::new_handler get_new_handler() noexcept; (since C++11)
Returns the currently installed new-handler, which may be a null pointer. π
This function is thread-safe. A previous call to std::set_new_handler synchronizes-with (see std::memory_order) the subsequent calls to std::get_new_handler. No cap, that's the documented sync situation. π₯
π Parameters π
(none). Not a single argument, bestie β zero args, zero drama. π«Ά
π Return value π
The currently installed new-handler, which may be a null pointer value. So yeah, it can be null β that's the whole return-value tea. π
π¦ See also π¦
operator newβ allocation functionsoperator new[]β(function)set_new_handlerβ registers a new handler(function)new_handlerβ function pointer type of the new handler(typedef)
okay that's the page, bestie. Source/version/date sign-off: it's from http://cppreference.com, dated 2024.06.10, and it's the std::get_new_handler(3) page. Bye, slay, hydrate, and may your handler never be null unless it's supposed to be πβ¨π
π¦ 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