[libcxx-commits] [libcxx] [libc++] Optimize vector growing of trivially relocatable types (PR #76657)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 11 09:59:26 PST 2024


================
@@ -646,6 +647,25 @@ __uninitialized_allocator_move_if_noexcept(_Alloc&, _Iter1 __first1, _Iter1 __la
 }
----------------
ldionne wrote:

Can we simplify the implementation of `__uninitialized_allocator_move_if_noexcept` now that it's only used in `__uninitialized_allocator_relocate`? Can we remove it and instead implement only `_relocate`?

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


More information about the libcxx-commits mailing list