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:

Code:
std::vector<int> x(100000000);
takes 0.42...s

Code:
 int* a=new int[100000000];
takes 0.00...s

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