title: Is there any faster way to insert elements in a std::vector
body: <p>I'm trying to insert a string in the following vector: <code>std::vector&lt;std::string&gt; fileVec</code>.</p>
  
  <p>The <code>fileVec</code> already has many elements in it (up to 1 million strings) before I call these lines: </p>
  
  <pre><code>int index = 5;
  
  //there is some code here to find the index i want insert the text (let's take for example has value 5)
  
  fileVec.insert(fileVec.begin() + index, "add this text");
  </code></pre>
  
  <p>The problem I have is that it take so much time to insert the text (specially if index is a small number).</p>
  
  <p>Is there any faster way to add elements in a big vector (without deleting other elements)?</p>
  
  <p>The <code>fileVec.insert</code> will not be called many times, around 15 times.</p>