What is another name for a Vectorinside of a Vector. What is the name of this construct? Would it be a Constructor Vector? I think this is a trick question my teacher is asking...
> What is another name for a Vector inside of a Vector.
It is usually called a vector.
Just as a pointer to a pointer is called a pointer.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
std::vector<int> a ; // vector of int
std::vector<double> b ; // vector of double
std::vector< std::list<int> > c ; // vector of list of int ;
std::vector< std::vector<int> > d ; // vector of vector of int ;
int* p = nullptr ; // pointer to int
int** pp = &p ; // pointer to pointer to int
std::vector<double>* pvd = &b ; // pointer to vector of double
std::vector<int*> e ; // vector of pointer to int
// etc...