| 61 | return ret; |
| 62 | } |
| 63 | void MarkUsed(std::vector<bool>* mark, const int* indices, int num_indices) { |
| 64 | auto& ref_mark = *mark; |
| 65 | for (int i = 0; i < num_indices; ++i) { |
| 66 | ref_mark[indices[i]] = true; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | std::vector<std::vector<int>> FindGroups(const std::vector<std::unique_ptr<BinMapper>>& bin_mappers, |
| 71 | const std::vector<int>& find_order, |