| 183 | template <class T, int L> |
| 184 | void set(const FixedVec<T, L>& a); |
| 185 | bool get_bit(int i) const |
| 186 | { |
| 187 | #ifdef CHECK_SIZE |
| 188 | if (i >= (int)nbits) |
| 189 | throw out_of_range("BitVector access: " + to_string(i) + "/" + to_string(nbits)); |
| 190 | #endif |
| 191 | return (bytes[i/8] >> (i % 8)) & 1; |
| 192 | } |
| 193 | void set_bit(int i,unsigned int a) |
| 194 | { |
| 195 | if ((size_t)i >= nbits) |