| 123 | } |
| 124 | |
| 125 | void set (T index, bool value = true) |
| 126 | { |
| 127 | if(!value) |
| 128 | { |
| 129 | clear(index); |
| 130 | return; |
| 131 | } |
| 132 | size_type byte = index / 8; |
| 133 | extend(index); |
| 134 | uint8_t bit = 1 << (index % 8); |
| 135 | _bits[byte] |= bit; |
| 136 | } |
| 137 | |
| 138 | void clear (T index) |
| 139 | { |
no test coverage detected