[libcxx-commits] [libcxx] Optimize __insert_with_sentinel Function in std::vector (PR #113768)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 13 06:32:55 PST 2024


================
@@ -119,6 +119,90 @@ void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) {
   }
 }
 
+// Wrap any Iterator into an input iterator
+template <typename Iterator>
+class InputIterator {
----------------
ldionne wrote:

I think you could reuse the type from `test_iterators.h` like you've done in some of your recent patches.

https://github.com/llvm/llvm-project/pull/113768


More information about the libcxx-commits mailing list