title: How to set initial size of std::vector?
body: <p>I have a <code>vector&lt;CustomClass*&gt;</code> and I put a lot of items in the vector and I need fast access, so I don't use list. How to set initial size of vector (for example to be 20 000 places, so to avoid copy when I insert new)?</p>