title: Creating a standard queue of pointers in c++
body: <p>Say I have a queue of integers,</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;queue&gt;
  using namespace std;
  
  
  int main() {
  
      int firstValToBePushed = 1;
  
      queue&lt;int&gt; CheckoutLine;
  
      CheckoutLine.push(firstValeToBePushed);
  
      cout &lt;&lt; CheckoutLine.front();
  
      return 0;
  }
  </code></pre>
  
  <p>How can I do essentially the same thing using a queue which holds pointers to integers as opposed to integers like it currently does above.  I plan on making a loop to make more than one value but this is just a more simple example.</p>
  
  <p>Thanks,</p>