Set the bit at the specified pos to 1, or to val if supplied.
Set the bit at the specified pos of this bitset to 1 and return a reference to this modifiable bitset. Optionally specify val as the value to set the bit. If val is non-zero, the bit is set to 1, otherwise the bit is set to 0.
reference to this modifiable bitset
| Name | Description |
|---|---|
| pos | index of the bit to set |
| val | value to assign to the bit (default true) |