Skip to content

[libc++] Remove a bunch of now unnecessary indirections in __tree #142397

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

@philnik777 philnik777 commented Jun 2, 2025

Most notably, this removes the notion of a distinct value_type and __containter_value_type from __tree, since these are now always the same type. There are a few places we need to keep __value_type around, since they are ABI visibile. In these cases _Tp is used directly. The second simplification here is that we use const value_type& instead of const key_type& in a few places and make use of the fact that the comparator is capable of comparing any combination of key_type and value_type.

This is a follow-up to #134819.

Copy link

github-actions bot commented Jun 2, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

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.

1 participant