std::get_new_handler (3) - Linux Manuals

std::get_new_handler: std::get_new_handler

NAME

std::get_new_handler - std::get_new_handler

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. Previous call to std::set_new_handler synchronizes-with (see std::memory_order) the subsequent calls to std::get_new_handler. (since C++11)

Parameters


(none)

Return value


The currently installed new-handler, which may be a null pointer value.

See also


                allocation functions
operator_new (function)
operator_new[]
                registers a new handler
set_new_handler (function)
                function pointer type of the new handler
new_handler (typedef)