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 関数で使用されます。

関連項目

メモリ確保関数
(関数)
新しいハンドラを登録する
(関数)
現在のnewハンドラを取得する
(関数)