title: Can range based for loop work over a range
body: <p>If I have range (pair of 2 iterators) is there a way to write "for each" loop for that uses range, not a raw array or container.</p>
  
  <p>Something like this:</p>
  
  <pre><code>auto rng = std::equal_range(v.begin(),v.end(),1984);
  for(const auto&amp; elem: rng) {
      // ...
  }
  </code></pre>