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)
Défini dans l'en-tête <new>
typedef void ( * new_handler ) ( ) ;

std::new_handler est le type de pointeur de fonction (pointeur vers une fonction qui ne prend aucun argument et retourne void), qui est utilisé par les fonctions std::set_new_handler et std::get_new_handler .

Voir aussi

fonctions d'allocation
(fonction)
enregistre un nouveau gestionnaire
(fonction)
obtient le gestionnaire actuel
(fonction)