[libcxx-commits] [libcxx] [libc++] Optimize ranges::equal for vector<bool>::iterator (PR #121084)

Peng Liu via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 8 08:34:28 PST 2025


winner245 wrote:

I've updated the tests for the `fill, fill_n` algorithms to temporarily use the standard `std::equal` in their equality assertions. This change is necessary because the `std::equal` algorithm with the `__bit_iterator` optimization fails to correctly compare `vector<bool>` instances with storage types smaller than `int`, as tracked in #126369. Once this issue is resolved, we should revert to the `__bit_iterator` optimized version in the `fill` and `fill_n` tests. This is clearly stated in the corresponding test files with a FIXME comment.

The purpose of this change is to ensure that this PR can be merged independently of the issue resolution.

https://github.com/llvm/llvm-project/pull/121084


More information about the libcxx-commits mailing list