Skip to content

Conversation

@miscco
Copy link
Contributor

@miscco miscco commented Jul 3, 2020

This replaces the ranges::replace_if algorithm

@miscco miscco requested a review from a team as a code owner July 3, 2020 21:18
@StephanTLavavej StephanTLavavej added the cxx20 C++20 feature label Jul 3, 2020
@StephanTLavavej StephanTLavavej self-requested a review July 4, 2020 09:55
Comment on lines +3068 to +3069
_It _First, const _Se _Last, _Pr _Pred, const _Ty& _Newval, _Pj _Proj) {
// replace projected _Oldval that fulfills _Pred with _Newval in [_First, _Last)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I observe that there is no variable named _Oldval in this function - but this isn't confusing, so it's not worth changing to "value". No change requested.

@CaseyCarter CaseyCarter self-assigned this Jul 7, 2020
@CaseyCarter CaseyCarter merged commit aac7b3f into microsoft:master Jul 7, 2020
@CaseyCarter
Copy link
Contributor

Congratulations on your first Range algorithm contribution. (Your STL bingo card must be filling up.)

@miscco miscco deleted the ranges_replace_if branch July 7, 2020 21:28
@CaseyCarter CaseyCarter mentioned this pull request Jul 7, 2020
@CaseyCarter CaseyCarter removed their assignment Jul 7, 2020
@StephanTLavavej StephanTLavavej added the ranges C++20/23 ranges label Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cxx20 C++20 feature ranges C++20/23 ranges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants