| 845 | |
| 846 | template<typename T> |
| 847 | inline static void InsertBitset(std::vector<uint32_t>* vec, const T val) { |
| 848 | auto& ref_v = *vec; |
| 849 | int i1 = val / 32; |
| 850 | int i2 = val % 32; |
| 851 | if (static_cast<int>(vec->size()) < i1 + 1) { |
| 852 | vec->resize(i1 + 1, 0); |
| 853 | } |
| 854 | ref_v[i1] |= (1 << i2); |
| 855 | } |
| 856 | |
| 857 | template<typename T> |
| 858 | inline static std::vector<uint32_t> ConstructBitset(const T* vals, int n) { |
no test coverage detected