title: Trouble copying a vector into a queue in c++
body: <p>I am working with a vector of around 400 float members and for my assignment I need to copy the vector into a queue. I never really understood the purpose of the queue and that has not made it easy. Here is what the function that I currently have....</p>
  <pre><code>template&lt;typename T&gt;
  void vector_to_queue(std::queue&lt;T&gt; q, std::vector&lt;T&gt; v){
     for(vector&lt;T&gt;::iterator it = v.begin(); it != v.end(); it++){
        q.push();
     }
  }
  </code></pre>
  <p>This is as far as I've gotten, I am completely stumped and would appreciate any help that can be provided.</p>