Skip to content

[libc++] Remove allocator support from std::function #140395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philnik777
Copy link
Contributor

The allocator support was never used, since the allocator constructors of std::function have been removed. This not only simplifies the code quite a bit, but also results in the constructor being instantiated ~8x faster.

Fixes #133901

@philnik777 philnik777 force-pushed the simplify_function branch from a4155fb to 2a90248 Compare May 17, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[libc++] Excessive memory consumption by std::function at compile time (vs libstdc++)
1 participant