std::new_handler - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::new_handler

From cppreference.com
< cpp‎ | memory‎ | new

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

operator newoperator new[] | allocation functions (function) [edit]
set_new_handler | registers a new handler (function) [edit]
get_new_handler (C++11) | obtains the current new handler (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/memory/new/new_handler&oldid=58337"