std::array<int, 3> foo = {1,2,3}; int bar[] = {1,2,3}; // the size is 3
For a plain array I don't have to assign the size. But I have to assign the size for std::array. Why?
std::array
Aucun commentaire:
Enregistrer un commentaire