Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
new
bad_alloc
new_handler
nothrow
nothrow_t
set_new_handler
global namespace:
operator delete
operator delete[]
operator new
operator new[]


new_handler

type
<new>
typedef void (*new_handler)();

Type of new handler function

This is a typedef of a void function with no parameters, used as the argument and return type in function set_new_handler.

A new handler function is a function that is called by the standard definition of functions operator new or operator new[] when they are not successful allocating memory.

For more info, see the reference for set_new_handler, which is the function used to set a function of this type as the active new handler.

See also