As an intro, I\'m using C++ in Visual Studio 2010, compiling for x64. I have a program that\'s using 2-Dimensional arrays to store data for running through a C style functio
You could use below as a macro or some delete function for 2D array with row count predefined :
for_each(results, results + rows , [](int* row) { delete[] row; }); delete[] results;