std::bad_alloc is the type of exception thrown when memory allocation fails in a C++ program
In C++ when operator new or std::allocator cannot allocate memory an exception of type std::bad_alloc will be thrown.
std::bad_alloc is the type of exception thrown when memory allocation fails in a C++ program
In C++ when operator new or std::allocator cannot allocate memory an exception of type std::bad_alloc will be thrown.