Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::bad_alloc is an exception and a derived class from std::exception. std::bad_alloc is thrown by new when new fails.
std::bad_alloc is defined in the header file new.
#include <cassert> |
terminate called after throwing an instance of 'std::bad_alloc' |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.