[libcxx-commits] [libcxx] Optimize __assign_with_sentinel in std::vector (PR #113852)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 11 10:10:59 PST 2024
================
@@ -48,6 +48,76 @@ void BM_Assignment(benchmark::State& st, Container) {
}
}
+// Wrap any Iterator into an input iterator
+template <typename Iterator>
+class InputIterator {
----------------
ldionne wrote:
Why is this class required for the benchmark below? Why not simply pass `c.assign(in.begin(), in.end())`? Is it because otherwise the `__assign_with_size()` overload is used?
https://github.com/llvm/llvm-project/pull/113852
More information about the libcxx-commits
mailing list