As we all know, it's normal to initialize an array of int like this:
int intAry[] = {7, 8, 9};
So, I want to know, how can initialize an array of std::vector in the same way(just in the initial list):
typedef std::vector<int> type;
type vecAry[] = {vec1, vec2, vec3};
I know it's legal to write code as fllows, now my question how to initialize vecAry in one line of code:
type vec1;
type vec2;
type vec3;
type vecAry = {vec1, vec2, vec3};
type vecAry[] = {vec1, vec2, vec3};?