title: How to remove several elements from the end of std::vector?
body: <p>Let's say I have a <code>std::vector</code> of integers:</p>
  
  <pre><code>std::vector&lt;int&gt; v;
  </code></pre>
  
  <p><code>v</code> contains 100 elements, and I want to remove the last 10 elements. I can think of this solution:</p>
  
  <pre><code>v.erase(v.end() - 10, v.end());
  </code></pre>
  
  <p>Anything better?</p>