title: Simple, but can't find: syntax to work with member variables of STL queues with type class
body: <p>This question is homework help; I didn't see something against the rules about that.</p>
  
  <p>This is my function:</p>
  
  <pre><code>void display_queue(queue&lt;cat&gt; original_queue) 
  {                       
    int dummy_integer;
    queue&lt;cat&gt; dummy_queue;       
    cout &lt;&lt; endl &lt;&lt; "The queue contains: " &lt;&lt; endl;
  
    //reads out the first q while moving values to second q
    while (!original_queue.empty())
    {
      cout &lt;&lt; ' ' &lt;&lt; original_queue.front().ears;
      dummy_integer = original_queue.front().ears;
      original_queue.pop();
      dummy_queue.push(dummy_integer).ears;
    }
  
    //put the values from q2 back to q1
    while (!dummy_queue.empty())
    {
      dummy_integer = dummy_queue.front().ears;
      dummy_queue.pop();
      original_queue.push(dummy_integer).ears;
    }
  
  }
  </code></pre>
  
  <p>This is a stripped-down, renamed model of a function in my much larger program, which is to simulate the process management aspect of a kernel. While I can successfully display the contents of my queue when it is a queue, I haven't come across the syntax when it's a class within those angle brackets.</p>
  
  <p>My incorrect syntax is in the lines where I am trying to <code>.push</code> and I feel like I've tried all possible options, but obviously that's false and I'm just fritzing.</p>
  
  <p>Does anyone know exactly how to write it?</p>