I have this code:
int a[4][4]=
{
{1,2,3,4},
{5,6,7,8},
{9,10,11,12},
{13,14,15,16}
}
And I want to initialize B which is defined as below:
vector<vector<int>> b;
I know that I can do this with two loops (and possibly with one loop as documented here: https://stackoverflow.com/a/4092996/654019
But is there any way that I can do this without any loop?