Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::abort is an STL function to abort the program from any point.
In the example below, std::signal sets the function onAbort to handle a possible abort. Then std::abort is called and handled by onAbort.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.