How do you convert a N-dimensional std::vector to the corresponding N-dimensional C-array?
std::vector
E.g. std::vector<std::vector<int>> to int arr[n][m], where n is the dimension of the outer vector and m of the inner vector?
std::vector<std::vector<int>>
int arr[n][m]
n
m
Aucun commentaire:
Enregistrer un commentaire