cpp/src/arrow/util/range_benchmark.cc
// For comparison: pure copy without any changes
For comparison: pure copy without any changes
For comparison : pure copy without any changes
void std_copy(benchmark::State& state) {
  auto source = generate_junk(kSize);
  std::vector<int> target(kSize);
  for (auto _ : state) {
    std::copy(source.begin(), source.end(), target.begin());
  }
}
void std_copy ( benchmark :: State & state ) { auto source = generate_junk ( kSize ) ; std :: vector < int > target ( kSize ) ; for ( auto _ : state ) { std :: copy ( source . begin ( ) , source . end ( ) , target . begin ( ) ) ; } }
For comparison: pure copy without any changes
For comparison : pure copy without any changes