Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
The struct is used as a function parameter to operator new to indicate that the function should return a null pointer to report an allocation failure, rather than throw an exception.
struct std::nothrow_t {};
Remarks
The struct helps the compiler to select the correct version of the constructor. nothrow (<new>) is a synonym for objects of type std::nothrow_t.
Example
See operator new and operator new[] for examples of how std::nothrow_t is used as a function parameter.
Requirements
Header: <new>
Namespace: std
See Also
Reference
Thread Safety in the Standard C++ Library