| 66 | sampler_->Update(a); |
| 67 | } |
| 68 | void Update2() { |
| 69 | // Add the value n times. |
| 70 | int64 a[10]; |
| 71 | for (int i = 0; i < 10; i++) { |
| 72 | a[i] = i; |
| 73 | } |
| 74 | for (int64 i = 1; i < 10; i++) { |
| 75 | sampler_->Update(ArraySlice<int64>(a + i, 10 - i)); |
| 76 | } |
| 77 | } |
| 78 | std::unique_ptr<RangeSampler> sampler_; |
| 79 | }; |
| 80 |