Clearing vector of vector elements
<p>I've a piece of code that needs to define <code>vector</code> of vectors. I use them in a loop ad populate it each time, the snippet looks like:</p>

<pre><code>vector &lt; vector&lt;T&gt; &gt; buckets;

for ( i = 0 -&gt; N) {
  buckets.clear();
  ....
}
</code></pre>

<p>My question is even after performing <code>.clear()</code> operation on <code>bucket</code>, on next iteration I see old values being present, is this usual?</p>

<p>Thanks in advance!</p>
