title: How to create a min heap of fixed size using std::priority_queue?
body: <p>I can define a min heap as:</p>
  
  <pre><code>priority_queue&lt;int, vector&lt;int&gt;, greater&gt; pq;
  </code></pre>
  
  <p>I have a stream of integers. The min heap's size is a fixed value k. It seems that priority_queue can not do this.</p>