[libcxx-commits] [libcxx] [libc++] Replace __is_trivially_relocatable by is_trivially_copyable (PR #124970)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Feb 15 02:39:56 PST 2025
ldionne wrote:
> > If you have details on which types are now generating less optimal `std::vector` operations, I could investigate.
>
> It's a small increase spread across the binary, so it's hard to say for sure, but it's likely our [`raw_ptr` type](https://source.chromium.org/chromium/chromium/src/+/main:base/allocator/partition_allocator/src/partition_alloc/pointers/raw_ptr.h;l=316;drc=5f14562c01775211a40ebc3056d0a773c3569008) which has a [test](https://chromium-review.googlesource.com/c/chromium/src/+/6250498/10/base/allocator/partition_allocator/src/partition_alloc/pointers/raw_ptr_unittest.cc) checking for exactly this and gets used a lot.
Ack, thanks, the link is super useful. FYI we voted trivial relocation into the working draft for C++26 this morning, so this should be coming sooner rather than later.
https://github.com/llvm/llvm-project/pull/124970
More information about the libcxx-commits
mailing list