[libcxx-commits] [libcxx] [libc++] Add the __is_replaceable type trait (PR #132408)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 24 11:02:22 PDT 2025


ldionne wrote:

> Thanks for doing this. Just curious did you do some benchmarks to see how much this performance this saves in our implementation?

This patch itself does not change the performance of anything. However, knowing whether a type is replaceable will be necessary when we want to implement some `std::vector` operations in terms of (trivial) relocation, which is where the performance improvements will be observed.


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


More information about the libcxx-commits mailing list