How to define a vector that will contain two-dimensional arrays.
eg: vector<array[16][16]> vec;
// where the two dimensional array have string elements
which will contain vec ={array_1[16][16],array_2[16][16],array_3[16][16],....};
I have tried:
vector<array<array<string,16>,16>> vec;
but it does not work when I use vec.push_back(array);
error shown is:
No matching member function for call to 'push_back'
minimal code:
string arr[16][16];
vector<array<array<string,16>,16>> vec;
vec.push_back(arr);