mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Create a benchmark to test the performance of synthesized read accessors generated to interop with C++ [] operators.
11 lines
237 B
C++
11 lines
237 B
C++
#ifndef BENCHMARK_SUBSCRIPTS_H
|
|
#define BENCHMARK_SUBSCRIPTS_H
|
|
#include <vector>
|
|
|
|
using TwoDimensionalVector = std::vector<std::vector<int>>;
|
|
|
|
inline TwoDimensionalVector initVector() { return {100, std::vector<int>{1000, 0}}; }
|
|
|
|
#endif
|
|
|