Issues of getting stuck into infinite loop while iterating through vectors
<p>I want to search through a vector of pairs and in order to do so..i am doing the following:</p>

<pre><code> vector&lt;pair&lt;double ,double&gt; &gt; vec_pairs;

 for(vector&lt;unsigned int&gt;::size_type j = 0; j != vec_pairs.size(); j++ )
        {
            if(vec_pairs[j].first==12.6)
            {
              int z=7;
              continue;
            }
        }
</code></pre>

<p>However my problem is...upon doing this...i am getting stuck in an infinite loop...
Can anyone help me in resolving the problem</p>
