can the swap be used to clear std::set as vector ?
<p>can swap function be used to free memory as in case of vectors as mentioned below?</p>

<pre><code>     std::vector&lt;int&gt; v1;

     // somehow increase capacity

    std::vector&lt;int&gt;().swap(v1);
</code></pre>
