Difference between revisions of "cpp/memory/new/new handler"
From cppreference.com
m (Shorten template names. Use {{lc}} where appropriate.) |
m (Update links.) |
||
Line 12: | Line 12: | ||
===See also=== | ===See also=== | ||
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/memory/new/ | + | {{dsc inc | cpp/memory/new/dsc operator_new}} |
− | {{dsc inc | cpp/memory/new/ | + | {{dsc inc | cpp/memory/new/dsc set_new_handler}} |
− | {{dsc inc | cpp/memory/new/ | + | {{dsc inc | cpp/memory/new/dsc get_new_handler}} |
{{dsc end}} | {{dsc end}} | ||
Revision as of 22:12, 31 May 2013
Defined in header <new>
|
||
typedef void (*new_handler)(); |
||
std::new_handler
is the function pointer type (pointer to function that takes no arguments and returns void), which is used by the functions std::set_new_handler and std::get_new_handler
See also
allocation functions (function) | |
registers a new handler (function) | |
(C++11) |
obtains the current new handler (function) |