std::nothrow_t

From cppreference.com
< cpp‎ | memory‎ | new
 
 
 
Dynamic memory management
Uninitialized storage
(C++17)
(deprecated since c++17)
(deprecated since c++17)
(deprecated since c++17)
Garbage collection support
(C++11)
Miscellaneous
(C++11)
(C++11)
(C++11)
C Library
Low level memory management
 
 
Defined in header <new>
struct nothrow_t {};

std::nothrow_t is an empty class type used to disambiguate the overloads of throwing and non-throwing allocation functions.

[edit] See also

an object of type nothrow_t used to select an non-throwing allocation function
(constant)
allocation functions
(function)