I need an efficient method with low complexity to change the values of a range of bits in the bitset :
bitset<1000000> bs;
and I need to set values from 100 to 500 to TRUE for example .
what is the fastest method to accomplish this in the lowest complexity ?
using a loop wouldn't suffice for sure .