title: Why doesn't C++ support range based for loop for dynamic arrays?
body: <p>Why doesn't C++ support range based for loop over dynamic arrays?  That is, something like this:</p>
  
  <pre><code>int* array = new int[len];
  for[] (int i : array) {};
  </code></pre>
  
  <p>I just invented the <code>for[]</code> statement to rhyme with <code>new[]</code> and <code>delete[]</code>.  As far as I understand, the runtime has the size of the array available (otherwise <code>delete[]</code> could not work) so in theory, range based for loop could also be made to work.  What is the reason that it's not made to work?</p>