[libcxx-commits] [libcxx] [libc++] Remove allocator support from std::function (PR #140395)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jun 8 07:43:37 PDT 2025


================
@@ -17,13 +17,7 @@
 #include <__functional/binary_function.h>
 #include <__functional/invoke.h>
 #include <__functional/unary_function.h>
-#include <__iterator/iterator_traits.h>
 #include <__memory/addressof.h>
-#include <__memory/allocator.h>
-#include <__memory/allocator_destructor.h>
-#include <__memory/allocator_traits.h>
-#include <__memory/compressed_pair.h>
-#include <__memory/unique_ptr.h>
 #include <__type_traits/aligned_storage.h>
----------------
philnik777 wrote:

This patch doesn't change any public interface. We're simply ignoring the allocator argument in more constructor now. I don't see how we'd hit hyrum's law with that change.

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


More information about the libcxx-commits mailing list