title: Passing a vector, queue, and pointer to a function
body: <p>I have a function <code>myfunc()</code> which requires the parameters <code>std::vector</code>, <code>std::queue</code>, and a pointer to a <code>MyClass</code> object.</p>
  
  <p>My function prototype is:</p>
  
  <pre><code>void myFunc(vector&lt;MyClass*&gt;, std::queue&lt;MyClass*&gt;, MyClass*);
  </code></pre>
  
  <p>I do not know if this is the proper prototype declaration or not.</p>
  
  <p>To call my function, i do the following:</p>
  
  <pre><code>myFunc(myVector, myQueue, MyClassObj);
  </code></pre>
  
  <p>Again, im not sure this is entirely correct.</p>
  
  <p>Lastly, my function is the following:</p>
  
  <pre><code>void myFunc(vector&lt;MyClass*&gt; myVector, std::queue&lt;MyClass*&gt; myQueue, MyClass* myClassObj)
  {
     //do something
  }
  </code></pre>
  
  <p>The function is supposed to search for a specific item in the vector. If it is not found, the myClassObj will be pushed to the queue. Otherwise, if the object is found, it will call another function to set the value of one of the parameters of the myClassObj.</p>
  
  <p>Am i doing this correctly?</p>
  
  <p>Thanks,</p>