Sets the bit specified by the index to the value.
index
value
void operator []=(int index, bool value) { if (value) { setBit(index); } else { clearBit(index); } }