Skip to content

Conversation

AlexGuteniev
Copy link
Contributor

Improves control flow by avoiding negation and continue.

Also a performance improvement, though a very minor one, and, as such, probably falls under Don't Help The Compiler ™️

@AlexGuteniev AlexGuteniev requested a review from a team as a code owner March 16, 2025 16:06
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Mar 16, 2025
@AlexGuteniev AlexGuteniev changed the title <algorithm>: avoid continue in search_n <algorithm>: avoid continue in ranges::search_n Mar 16, 2025
@StephanTLavavej StephanTLavavej added enhancement Something can be improved ranges C++20/23 ranges labels Mar 17, 2025
@StephanTLavavej StephanTLavavej self-assigned this Mar 17, 2025
@StephanTLavavej StephanTLavavej removed their assignment Mar 17, 2025
@StephanTLavavej
Copy link
Member

Thanks! Yes, avoiding continue is a minor improvement here. 😻

@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Mar 17, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews Mar 21, 2025
@StephanTLavavej StephanTLavavej self-assigned this Mar 21, 2025
@StephanTLavavej
Copy link
Member

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

StephanTLavavej added a commit to StephanTLavavej/STL that referenced this pull request Mar 21, 2025
@StephanTLavavej StephanTLavavej merged commit 7b38f9f into microsoft:main Mar 24, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Merging to Done in STL Code Reviews Mar 24, 2025
@StephanTLavavej
Copy link
Member

Thanks for the code cleanup! 🧹 🐱 🐈

@AlexGuteniev AlexGuteniev deleted the discontinue branch March 25, 2025 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved ranges C++20/23 ranges
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants