Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rG7a3b528e1b54: [libc++][PSTL] Implement std::count{,_if}
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
libcxx/include/__algorithm/pstl_count.h | ||
---|---|---|
2 | We should update the backend documentation comment. | |
45 | I think we should implement this using reduce instead, like in the original PSTL. I think we should implement std::reduce before we implement this one. | |
libcxx/test/std/algorithms/alg.nonmodifying/alg.count/pstl.count.pass.cpp | ||
56 | Can you also test a 3 element range with {yes, no, yes}? Right now, the tests would pass if we were counting the number of consecutive elements equal to the value, kind of like equal_range I guess. | |
libcxx/test/std/algorithms/alg.nonmodifying/alg.count/pstl.count_if.pass.cpp | ||
56 | Same for {yes no yes}. |
We should update the backend documentation comment.