title: Google Test and std::vector range exceptions
body: <p>I test my C++ code with googletest. When a <code>vector::_M_range_check</code> exception is thrown because a <code>std::vector</code> is accessed with a wrong index, googletest reports:</p>
  
  <pre><code>C++ exception with description "vector::_M_range_check" thrown in the test body.
  </code></pre>
  
  <p>Great, now I'd also like to know which vector, which index and which range. How can I easily get this information, keeping the test code in googletest unit test cases?</p>
  
  <p>(I almost begin long for Java with its good old <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/IndexOutOfBoundsException.html" rel="noreferrer">IndexOutOfBoundsException</a>...)</p>