title: Why don't the standard C++ container adaptors provide a clear function?
body: <p>Does anyone know why std::queue, std::stack, and std::priority_queue don't provide a <code>clear()</code> member function?  I have to fake one like this:</p>
  
  <pre><code>std::queue&lt;int&gt; q;
  // time passes...
  q = std::queue&lt;int&gt;();  // equivalent to clear()
  </code></pre>
  
  <p>IIRC, <code>clear()</code> is provided by everything that could serve as the underlying container.  Is there a good reason to not have the container adaptors provide it?</p>