[libcxx-commits] [libcxx] [libc++] Optimize vector growth for nothrow move constructible types (PR #214690)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 12 07:45:05 PDT 2026


================
@@ -14,9 +14,23 @@
 #include "sequence_container_benchmarks.h"
 #include "benchmark/benchmark.h"
 
+struct NothrowMoveConstructible {
+  std::shared_ptr<int> s;
----------------
ldionne wrote:

I would suggest using `std::string` here. The `Generate` can then use the string generation.

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


More information about the libcxx-commits mailing list