[libcxx-commits] [libcxx] [libc++] Make std::pair trivially copyable if its members are (PR #89652)

Daniel Kutenin via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 23 08:09:31 PDT 2024


danlark1 wrote:

> > This patch relaxes the condition on std::pair to make it more memcpy'ble.
> 
> Should `is_trivially_copyable` be true _more_ often then, instead of less often?

Yes, it will/should be true more often to enable more compiler optimizations

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


More information about the libcxx-commits mailing list