Details
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rG68ee014b15d3: [libc++][PSTL] Implement std::for_each{, _n}
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/include/__algorithm/for_each.h | ||
---|---|---|
22–24 ↗ | (On Diff #517713) | I don't think these formatting changes are necessary here. |
libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each.pass.cpp | ||
42 | I think it does, cause it's a bit reference under the hood and so for example begin(), begin() + 1 will share the same underlying byte but can be processed in different threads. So yeah, I think vector<bool> + pstl is not a happy combination. |
Comment Actions
Could you perhaps make a quick pass over all your pstl tests to make sure you don't have copy-paste errors in those signatures?
libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/pstl.for_each_n.pass.cpp | ||
---|---|---|
16–18 | Wrong signature! |
I think it does, cause it's a bit reference under the hood and so for example begin(), begin() + 1 will share the same underlying byte but can be processed in different threads. So yeah, I think vector<bool> + pstl is not a happy combination.