<new> typedefs

Visual Studio 2015
 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at <new> typedefs.

new_handler](#new_handler)|

The type points to a function suitable for use as a new handler.

typedef void (*new_handler)();

Remarks

This type of handler function is called by operatornew or operator new[] when they cannot satisfy a request for additional storage.

Example

See set_new_handler for an example using new_handler as a return value.

<new>

Show: