Unverified Commit 168604d8 by Nick Committed by GitHub

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

parent 8982e1ee
...@@ -622,7 +622,7 @@ that might be used to customize high-order term calculation. ...@@ -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" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment