As in the title, I got to find tons of solutions doing this. Most people would say std::array<4, std::array<4, int>>
or std::vector<std::vector<int>>
are good, which, however, I find looks teidous and hard to extend to multi-dimensional arrays. Also, I fear that these arrays are actually object-arrays which is likely to be with some overhead (I guess so, not really certain). So what is the best way to do this ?
dimanche 28 octobre 2018
what is the best modern c++ approach to construct and manipulate a 2d array
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire