title: Can you set queues equal to each other?
body: <p>For example, if I have one queue of <code>int</code> named Q with the values (from front to back) 0, 1, 2, and 3, can I just create another queue of <code>int</code> and set them equal to each other to copy data from one another?</p>
  
  <p>Here is an example:</p>
  
  <blockquote>
    <p>Write a C++ Function <code>queue&lt;int&gt; copy_queue(queue&lt;int&gt; &amp;Q)</code> that returns a new queue containing all of the items in Q in the same order that they were found in Q. The original queue Q must end up unchanged.</p>
  </blockquote>
  
  <p>Would it be possible to just do something like:</p>
  
  <pre><code>queue&lt;int&gt; copy_queue(queue&lt;int&gt; &amp;Q){    
    queue&lt;int&gt;Q2 = Q; 
    return Q2;
  }
  </code></pre>