description | title | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: _query_new_handler |
_query_new_handler |
11/04/2016 |
|
|
|
|
|
|
9a84b5c3-fe33-4c01-83a0-be87dc3ec518 |
Returns the address of the current new
handler routine.
_PNH _query_new_handler(
void
);
Returns the address of the current new
handler routine as set by _set_new_handler
.
The C++ _query_new_handler
function returns the address of the current exception-handling function set by the C++ _set_new_handler
function. _set_new_handler
is used to specify an exception-handling function that is to gain control if the new
operator fails to allocate memory. For more information, see the discussion of the new
and delete
operators in the C++ Language Reference.
Routine | Required header |
---|---|
_query_new_handler |
<new.h> |
For more compatibility information, see Compatibility.
All versions of the C run-time libraries.