cpp · cpp/std--bad_alloc
std--bad_alloc
std::bad_alloc
Thrown by operator new and operator new[] when memory allocation fails. Can be avoided by using the nothrow variant: new(std::nothrow) T, which returns nullptr on failure instead.
References
In this namespace
— start of namespace —
next → std--bad_cast std::bad_cast