[libcxx-commits] [libcxx] [libc++] Fix {deque, vector}::append_range assuming too much about the types (PR #162438)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 9 06:41:25 PDT 2025


================
@@ -399,6 +399,53 @@ void sequence_container_benchmarks(std::string container) {
           st.ResumeTiming();
         }
       });
+
+#if TEST_STD_VER >= 23
+    for (auto gen : generators)
+      bench("append_range()" + tostr(gen), [gen](auto& state) {
----------------
ldionne wrote:

```suggestion
      bench("append_range() (empty)" + tostr(gen), [gen](auto& state) {
```

Or do we want to instead benchmark it with some elements already in the sequence?

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


More information about the libcxx-commits mailing list