Originally posted by elad
no way to control the exact capacity of vectors in STL.
Actually, you can call reserve() to increase the capacity of a vector. Shrinking a vector is a little more complicated, but it can be done.