title: Is it possible to exit a for before time in C++, if an ending condition is reached?
body: <p>I want to know if it is possible to end a for loop in C++ when an ending condition (different from the reacheing right number of iterations) is verified. For instance:</p>
  
  <pre><code>for (int i = 0; i &lt; maxi; ++i)
      for (int j = 0; j &lt; maxj; ++j)
          // But if i == 4 &lt; maxi AND j == 3 &lt; maxj, 
          // then jump out of the two nested loops.
  </code></pre>
  
  <p>I know that this is possible in Perl with the next LABEL or last LABEL calls and labeled blocks, is it possible to do it in C++ or I should use a while loop?</p>
  
  <p>Thank you.</p>