Skip to content

Introduce _Is_transparent helper trait - #3736

Merged
Stephan T. Lavavej (StephanTLavavej) merged 3 commits into
microsoft:mainfrom
Saalvage:is_transparent_helper
Jun 15, 2023
Merged

Introduce _Is_transparent helper trait#3736
Stephan T. Lavavej (StephanTLavavej) merged 3 commits into
microsoft:mainfrom
Saalvage:is_transparent_helper

Conversation

@Saalvage

Copy link
Copy Markdown
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
Stefan (Saalvage) requested a review from a team as a code owner May 26, 2023 23:39
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the enhancement Something can be improved label May 27, 2023
Comment thread stl/inc/xutility Outdated
@StephanTLavavej

Copy link
Copy Markdown
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

Copy link
Copy Markdown
Member

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

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 1912652 into microsoft:main Jun 15, 2023
@StephanTLavavej

Copy link
Copy Markdown
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

4 participants