[libcxx-commits] [libcxx] [libc++] Add an ABI setting to harden unique_ptr<T[]>::operator[] (PR #91798)

Eli Friedman via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 10 12:57:35 PDT 2024


efriedma-quic wrote:

> I actually think the compiler knows the size of the allocation cause it encodes it at the front of the allocation

Only when the element type has a non-trivial destructor.

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


More information about the libcxx-commits mailing list