etc/setnew1.cpp

The following code example is taken from the book
Object-Oriented Programming in C++
by Nicolai M. Josuttis, Wiley, 2002
© Copyright Nicolai M. Josuttis 2002


// define type for pointer to new handler
namespace std {
    typedef void (*new_handler) ();
}

// pointer to current new handler
new_handler myNewHandler;