title: How to compare vectors with Boost.Test?
body: <p>I am using Boost Test to unit test some C++ code.</p>
  
  <p>I have a vector of values that I need to compare with expected results, but I don't want to manually check the values in a loop:</p>
  
  <pre><code>BOOST_REQUIRE_EQUAL(values.size(), expected.size());
  
  for( int i = 0; i &lt; size; ++i )
  {
      BOOST_CHECK_EQUAL(values[i], expected[i]);
  }
  </code></pre>
  
  <p>The main problem is that the loop check doesn't print the index, so it requires some searching to find the mismatch.</p>
  
  <p>I could use <code>std::equal</code> or <code>std::mismatch</code> on the two vectors, but that will require a lot of boilerplate as well.</p>
  
  <p>Is there a cleaner way to do this?</p>