How to split bitset of any size into list of 64 bits bitsets?

  bitset, c++

I have a bitset of any size and I would like to know the fastest way to get a list of 64 bits bitsets from my original bitset ?

For example, from bitset<10000> b('010001110 ...'), I would like to get a list of 64 bits bitsets containing the 1st 64th bits, then the next 64th bits from my original bitset, and so on.

Source: Windows Questions C++

LEAVE A COMMENT