vendredi 2 octobre 2015

Nice way to create a dynamic 2D matrix in C++ 11

I already know how to create a dynamic 2D matrix using new and free it using delete. Since C++ 11 is here with many new memory features such as unique_ptr, array container etc.; what is a nice way to create a 2D matrix so that one needs not to free the matrix explicitly using delete operator?

Aucun commentaire:

Enregistrer un commentaire