hi,
I've just tried to measure the performance of the std::vector vs traditional array, and I'm quite surprised to see that initializing a vector is WAY longer than initializing an array:
takes 0.42...sCode:std::vector<int> x(100000000);
takes 0.00...sCode:int* a=new int[100000000];
Why is there such a huge difference? With such a difference, I guess people only use std::vector when they need features such as insert?
Ujl
