17 Language support library [support]

17.6 Dynamic memory management [support.dynamic]

17.6.4 Storage allocation errors [alloc.errors]

17.6.4.4 set_new_handler [set.new.handler]

new_handler set_new_handler(new_handler new_p) noexcept;
Effects: Establishes the function designated by new_p as the current new_handler.
Returns: The previous new_handler.
Remarks: The initial new_handler is a null pointer.