utils/google-benchmark/test/user_counters_test.cc
void CheckIterationInvariant(Results const& e) {
  double its = e.NumIterations();
  // check that the values are within 0.1% of the expected value
  CHECK_FLOAT_COUNTER_VALUE(e, "foo", EQ, its, 0.001);
  CHECK_FLOAT_COUNTER_VALUE(e, "bar", EQ, 2. * its, 0.001);
}
// VS2013 does not allow this function to be passed as a lambda argument
// to CHECK_BENCHMARK_RESULTS()
VS2013 does not allow this function to be passed as a lambda argument
to CHECK_BENCHMARK_RESULTS()
VS2013 does not allow this function to be passed as a lambda argument to CHECK_BENCHMARK_RESULTS ()
void CheckIterationInvariant(Results const& e) {
  double its = e.NumIterations();
  CHECK_FLOAT_COUNTER_VALUE(e, "foo", EQ, its, 0.001);
  CHECK_FLOAT_COUNTER_VALUE(e, "bar", EQ, 2. * its, 0.001);
}
void CheckIterationInvariant ( Results const & e ) { double its = e . NumIterations ( ) ; CHECK_FLOAT_COUNTER_VALUE ( e , " " , EQ , its , 0.001 ) ; CHECK_FLOAT_COUNTER_VALUE ( e , " " , EQ , 2. * its , 0.001 ) ; }
VS2013 does not allow this function to be passed as a lambda argument
to CHECK_BENCHMARK_RESULTS()
VS2013 does not allow this function to be passed as a lambda argument to CHECK_BENCHMARK_RESULTS ()
// check that the values are within 0.1% of the expected value