Difference between revisions of "cpp/memory/new/new handler"
From cppreference.com
m (Update links.) |
Andreas Krug (Talk | contribs) m (.) |
||
(One intermediate revision by one user not shown) | |||
Line 2: | Line 2: | ||
{{cpp/memory/new/navbar}} | {{cpp/memory/new/navbar}} | ||
{{dcl begin}} | {{dcl begin}} | ||
− | {{dcl header | new}} | + | {{dcl header|new}} |
− | {{dcl | + | {{dcl|1= |
typedef void (*new_handler)(); | typedef void (*new_handler)(); | ||
}} | }} | ||
{{dcl end}} | {{dcl end}} | ||
− | {{tt|std::new_handler}} is the function pointer type (pointer to function that takes no arguments and returns void), which is used by the functions {{lc|std::set_new_handler}} and {{lc|std::get_new_handler}} | + | {{tt|std::new_handler}} is the function pointer type (pointer to function that takes no arguments and returns void), which is used by the functions {{lc|std::set_new_handler}} and {{lc|std::get_new_handler}}. |
===See also=== | ===See also=== | ||
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/memory/new/dsc operator_new}} | + | {{dsc inc|cpp/memory/new/dsc operator_new}} |
− | {{dsc inc | cpp/memory/new/dsc set_new_handler}} | + | {{dsc inc|cpp/memory/new/dsc set_new_handler}} |
− | {{dsc inc | cpp/memory/new/dsc get_new_handler}} | + | {{dsc inc|cpp/memory/new/dsc get_new_handler}} |
{{dsc end}} | {{dsc end}} | ||
− | + | {{langlinks|de|es|fr|it|ja|pt|ru|zh}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 09:12, 14 June 2023
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.
[edit] See also
allocation functions (function) | |
registers a new handler (function) | |
(C++11) |
obtains the current new handler (function) |