[libcxx-commits] [libcxx] [libc++] Add an ABI setting to harden unique_ptr<T[]>::operator[] (PR #91798)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 23 12:25:56 PDT 2024
ldionne wrote:
I updated the patch with a WIP attempt to use the array cookie when one is present. There are still things to fix and comments to address (e.g. maybe using `SIZE_MAX` is better to eliminate a branch), but I wanted to get this draft out there for comments. I think it's a pretty clever improvement to `unique_ptr`.
https://github.com/llvm/llvm-project/pull/91798
More information about the libcxx-commits
mailing list