C++ New Library - nothrow_t


It is is a type of the nothrow constant and this is a type specifically designed to overload the dynamic memory allocation operator functions operator new, operator new[], operator delete and operator delete[].

It is an empty class defined in header <new>. This header also defines the standard constant nothrow, which is a value of this type specifically designed to call the overloaded operator functions.

Following is the declaration for std::nothrow_t.

struct nothrow_t {};