summaryrefslogtreecommitdiff
path: root/libcxx/benchmarks
diff options
context:
space:
mode:
authorChristopher Di Bella <cjdb@google.com>2021-04-24 21:31:23 +0000
committerChristopher Di Bella <cjdb@google.com>2021-05-02 05:02:59 +0000
commit773ae4412468433c134e668b4047c94f4599e0fd (patch)
treed04e4b93086a1dec182d22287ae9726cb94567ab /libcxx/benchmarks
parentd4d1caafc8d12d5df5c98b2aec5acf5c10ea22d1 (diff)
downloadllvm-773ae4412468433c134e668b4047c94f4599e0fd.tar.gz
[libcxx][nfc] prefixes test type `input_iterator` with `cpp17_`
C++20 revised the definition of what it means to be an iterator. While all _Cpp17InputIterators_ satisfy `std::input_iterator`, the reverse isn't true. D100271 introduces a new test adaptor to accommodate this new definition (`cpp20_input_iterator`). In order to help readers immediately distinguish which input iterator adaptor is _Cpp17InputIterator_, the current `input_iterator` adaptor has been prefixed with `cpp17_`. Differential Revision: https://reviews.llvm.org/D101242
Diffstat (limited to 'libcxx/benchmarks')
-rw-r--r--libcxx/benchmarks/filesystem.bench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/benchmarks/filesystem.bench.cpp b/libcxx/benchmarks/filesystem.bench.cpp
index 64314ac5ab04..95aecd50473f 100644
--- a/libcxx/benchmarks/filesystem.bench.cpp
+++ b/libcxx/benchmarks/filesystem.bench.cpp
@@ -62,7 +62,7 @@ void BM_PathConstructIter(benchmark::State &st, GenInputs gen) {
}
template <class GenInputs>
void BM_PathConstructInputIter(benchmark::State &st, GenInputs gen) {
- BM_PathConstructIter<input_iterator>(st, gen);
+ BM_PathConstructIter<cpp17_input_iterator>(st, gen);
}
template <class GenInputs>
void BM_PathConstructForwardIter(benchmark::State &st, GenInputs gen) {