<xstd/bits/bit_algorithm/bit_mismatch.hpp>¶
bit_mismatch¶
As ranges::mismatch in [mismatch], with:
- Constraints:
R1is a sequence of ours, andremove_cvref_t<R1>andremove_cvref_t<R2>are the same type:bit_array<8>andbit_array<9>are turned away. - Effects: Two whole sequences whose storage compares its blocks are compared a block at a time, at two run-time
sizes as well, stopping at the shorter's end, so set bits in the longer where the shorter has padding do not
count. Two windows are compared by
ranges::mismatch(r1, r2)itself. - Complexity: O(min(
N1,N2)/D) for two whole sequences; for two windows,ranges::mismatch's.