[libcxx-commits] [libcxx] [libc++] Pass type information down to __libcpp_allocate (PR #118837)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 7 09:51:20 PST 2025


================
@@ -47,52 +47,61 @@ _LIBCPP_HIDE_FROM_ABI void __libcpp_operator_delete(_Args... __args) _NOEXCEPT {
 #endif
 }
 
+template <class _Tp>
 inline _LIBCPP_HIDE_FROM_ABI void* __libcpp_allocate(size_t __size, size_t __align) {
----------------
ldionne wrote:

Right now, `__libcpp_allocate` takes a number of bytes. Are you suggesting we change that to a number of elements of type `_Tp`?

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


More information about the libcxx-commits mailing list