Skip to content

Introduce _Is_transparent helper trait#3736

Merged
StephanTLavavej merged 3 commits intomicrosoft:mainfrom
Saalvage:is_transparent_helper
Jun 15, 2023
Merged

Introduce _Is_transparent helper trait#3736
StephanTLavavej merged 3 commits intomicrosoft:mainfrom
Saalvage:is_transparent_helper

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
@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! 😹 🔭 🎉

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

Comments