Skip to content
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

Introduce _Is_transparent helper trait #3736

Merged
merged 3 commits into from
Jun 15, 2023
Merged

Introduce _Is_transparent helper trait #3736

merged 3 commits into from
Jun 15, 2023

Conversation

Saalvage
Copy link
Contributor

And properly standardize some SFINAE using it.

I would like to utilize this helper in implementing flat_set.

Also a concept for future-proofing.
@Saalvage Saalvage requested a review from a team as a code owner May 26, 2023 23:39
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label May 27, 2023
stl/inc/xutility Outdated Show resolved Hide resolved
@StephanTLavavej
Copy link
Member

This is an excellent refactoring, thank you! The SFINAE was more complicated than I remembered, and the way you're simplifying it is great. (It was weird/unusual to be doing SFINAE with separate template parameters.) I've pushed a small change to move code around for increased throughput.

@StephanTLavavej StephanTLavavej self-assigned this Jun 14, 2023
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 1912652 into microsoft:main Jun 15, 2023
@StephanTLavavej
Copy link
Member

Thanks for making this code so clear! 😹 🔭 🎉

@Saalvage Saalvage deleted the is_transparent_helper branch June 15, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants