You can use abort()from <cstdlib>. It sends SIGABRTto the process, and if the signal is not caught, the program terminates without calling any destruction procedures, such as atexit()or any destructors.
Additional information here: link
Edit: std::quick_exitterminates normally, while the call abort()leads to abnormal termination, I do not know if this problem was.
source
share