The single-iterator algorithms have an implementation for false and true, which are almost identical. Instead of writing two functions, this refactors the code to take the value searched for as a template parameter. This avoids a lot of code duplication and makes it easier to reason about the algorithm and their difference.
Details
Details
- Reviewers
Mordante - Group Reviewers
Restricted Project - Commits
- rG4d20cfcf4eb0: [libc++] Simplify single-iterator __bit_iterator algorithm specializations
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Can you add a bit more information regarding the patch in the commit message?
libcxx/include/__bit_reference | ||
---|---|---|
184–188 | Please use the LLVM coding standard. |
Please use the LLVM coding standard.