[docs] Use `benchmark::IterationCount` rather than `int64_t` in lambda to complexity (#940)

This commit is contained in:
Nick 2020-02-18 07:04:45 -05:00 committed by GitHub
parent 8982e1ee6a
commit 168604d8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ that might be used to customize high-order term calculation.
```c++ ```c++
BENCHMARK(BM_StringCompare)->RangeMultiplier(2) BENCHMARK(BM_StringCompare)->RangeMultiplier(2)
->Range(1<<10, 1<<18)->Complexity([](int64_t n)->double{return n; }); ->Range(1<<10, 1<<18)->Complexity([](benchmark::IterationCount n)->double{return n; });
``` ```
<a name="templated-benchmarks" /> <a name="templated-benchmarks" />