[libcxx-commits] [libcxx] [libc++] Optimize vector<bool>(const vector<bool>&) (PR #161672)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 6 07:16:41 PDT 2025
================
@@ -701,7 +702,8 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 vector<bool, _Allocator>::vector(const vector& __v
__alloc_(__storage_traits::select_on_container_copy_construction(__v.__alloc_)) {
if (__v.size() > 0) {
__vallocate(__v.size());
- __construct_at_end(__v.begin(), __v.end(), __v.size());
----------------
ldionne wrote:
Does this allow us to remove `__construct_at_end`?
https://github.com/llvm/llvm-project/pull/161672
More information about the libcxx-commits
mailing list