Quantcast
Viewing latest article 3
Browse Latest Browse All 4

Answer by Bo Persson for C++ Do operation on bits of a std::bitset

There is no shortcut with slicing bitsets. Just work your way through the bits

a[0] = arr[0] & arr[4] & arr[8] & arr[12];

etc.

It can't take the computer long to check 16 bits, however you do it!


Viewing latest article 3
Browse Latest Browse All 4

Trending Articles