S
Simply_Red
Hi.
if i have a table of vector:
std::vector<Points>* ArraySol = new std::vector<Points>[nbValues];
to free the memory do i have to do:
for (int i = 0; i<nbValues;i++) ArraySol.clear();
delete[] ArraySol ;
or delete[] ArraySol is enought??
if i have a table of vector:
std::vector<Points>* ArraySol = new std::vector<Points>[nbValues];
to free the memory do i have to do:
for (int i = 0; i<nbValues;i++) ArraySol.clear();
delete[] ArraySol ;
or delete[] ArraySol is enought??