Skip to content

Modernize ranges::count_if - #975

Merged
Stephan T. Lavavej (StephanTLavavej) merged 3 commits into
microsoft:masterfrom
miscco:ranges_count_if
Jul 11, 2020
Merged

Stephan T. Lavavej (StephanTLavavej) merged 3 commits into
microsoft:masterfrom
miscco:ranges_count_if

Conversation

@miscco

Copy link
Copy Markdown
Contributor

This does even compile as it does not need the new machinery

Comment thread stl/inc/algorithm
Comment thread tests/std/tests/P0896R4_ranges_alg_count_if/test.cpp Outdated
Comment thread tests/std/tests/P0896R4_ranges_alg_count_if/test.cpp Outdated
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the enhancement Something can be improved label Jul 3, 2020
@StephanTLavavej

Copy link
Copy Markdown
Member

ranges::count_if(pull_requests, is_awesome) seems to behave the same as ranges::count(pull_requests). There must be a bug somewhere.

@miscco
Michael Schellenberger Costa (miscco) deleted the ranges_count_if branch July 12, 2020 08:20
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants