Files
2025-10-25 03:02:53 +03:00

1.2 KiB

[new.handler]

17 Language support library [support]

17.6 Dynamic memory management [support.dynamic]

17.6.4 Storage allocation errors [alloc.errors]

17.6.4.3 Type new_handler [new.handler]

🔗

using new_handler = void (*)();

1

#

The type of ahandler function to be called byoperator new() oroperator new ([new.delete]) when they cannot satisfy a request for additional storage.

2

#

Required behavior: A new_handler shall perform one of the following:

make more storage available for allocation and then return;

throw an exception of typebad_alloc or a class derived frombad_alloc;

terminate execution of the program without returning to the caller.