[libcxx-commits] [libcxx] Optimize __assign_with_sentinel in std::vector (PR #113852)

Peng Liu via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 11 13:56:22 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 {
----------------
winner245 wrote:

Thanks for pointing out the existence of `cpp17_input_iterator`, which could make my benchmark testing simpler. I will adopt this class. 

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


More information about the libcxx-commits mailing list