C
crea
Simple question: Is STL vector always as efficient way as using normal
c-dynamical arrays?
So is
vector<int> ve1;
ve1.reserve(100);
always as fast/efficient than
int* ve2 = new int[100];
?
and other operations as well?
Do you always use vector instead of normal c-arrays? in what situations not?
c-dynamical arrays?
So is
vector<int> ve1;
ve1.reserve(100);
always as fast/efficient than
int* ve2 = new int[100];
?
and other operations as well?
Do you always use vector instead of normal c-arrays? in what situations not?