[libcxx-commits] [clang] [clang-tools-extra] [libcxx] Reland "[clang] Enable sized deallocation by default in C++14 onwards" (PR #90373)
Vitaly Buka via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 23 00:05:45 PDT 2024
vitalybuka wrote:
Internally ::allocate uses sided new:
```
void*
allocate(size_t __bytes, size_t __alignment = _S_max_align)
__attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3)))
{ return ::operator new(__bytes, do_allocate(__bytes, __alignment)); }
```
https://github.com/llvm/llvm-project/pull/90373
More information about the libcxx-commits
mailing list