Confused about pop_back(), C++
<p>I am trying to understand the behavior of <code>vector::pop_back()</code>. So I have following code snippet:</p>

<pre><code>vector&lt;int&gt; test;
test.push_back(1);
test.pop_back();
cout &lt;&lt; test.front() &lt;&lt; endl;
</code></pre>

<p>Maybe it is right but it surprises me that it prints out 1. So I am confused. Is <code>pop_back()</code> only able to remove the element has <code>index &gt; 0</code> ?</p>

<p>Thanks in advance!</p>
