| 154 | } |
| 155 | |
| 156 | bool is_set (T index) const |
| 157 | { |
| 158 | size_type byte = index / 8; |
| 159 | if(byte < _size) |
| 160 | { |
| 161 | uint8_t bit = 1 << (index % 8); |
| 162 | return bit & _bits[byte]; |
| 163 | } |
| 164 | else return false; |
| 165 | } |
| 166 | |
| 167 | /// WARNING: this can truncate long bit arrays |
| 168 | template <typename I = uint32_t> |
no outgoing calls