title: Getting index of an element in a std::queue by its value
body: <p>Is there a simple way to get the position of an element in a <code>std::queue</code> by its value in C++?</p>
  
  <p>For example:</p>
  
  <pre><code>std::queue&lt;int&gt; numbers;
  
  numbers.push(7);
  numners.push(4);
  numbers.push(11);
  
  int position = numbers.getPosition(4); //should be 1
  </code></pre>