title: Is there a standard way to compare two ranges in C++?
body: <p>By range I mean a pair of iterators. In pseudo C++:</p>
  
  <pre><code>std::vector&lt;int&gt; v1 = { 1, 2, 3, 4, 5 };
  std::vector&lt;int&gt; v2 = { 2, 3, 4 };
  if( std::compare_range( v1.begin() + 1, v1.end() - 1, v2.begin(), v2.end() ) {
      std::cout &lt;&lt; "Alright\n";
  }
  </code></pre>
  
  <p><code>compare_range</code> being of course the function I'm looking for.</p>
  
  <p>Disclaimer: This is a pretty trivial function to write, I know. But like all programmers, I try to be lazy ;-)</p>