Namespaces
Variants
Views
Actions

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
Miscellaneous
(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) [edit]
allocation functions
(function) [edit]