Namespaces
Variants

std:: new_handler

From cppreference.net
< cpp ‎ | memory ‎ | new
Utilities library
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
定义于头文件 <new>
typedef void ( * new_handler ) ( ) ;

std::new_handler 是函数指针类型(指向无参数且返回 void 的函数的指针),被函数 std::set_new_handler std::get_new_handler 所使用。

参阅

分配函数
(函数)
注册新的处理函数
(函数)
获取当前的新处理函数
(函数)