uando os vetores são alocados, eles usam memória na pilha ou na pilh
Todas as seguintes afirmações são verdadeira
vector<Type> vect; //allocates vect on stack and each of the Type (using std::allocator) also will be on the stack
vector<Type> *vect = new vector<Type>; //allocates vect on heap and each of the Type will be allocated on stack
vector<Type*> vect; //vect will be on stack and Type* will be on heap.
Como a memória é alocada internamente paraType
em umvector
ou qualquer outro contêiner STL?