| 39 | |
| 40 | template <typename K, typename V> |
| 41 | std::map<K, std::vector<V>> multimapToMapOfVectors(const std::multimap<K, V>& multimap) |
| 42 | { |
| 43 | std::map<K, std::vector<V>> results; |
| 44 | for (auto& [k, v] : multimap) |
| 45 | results[k].push_back(v); |
| 46 | return results; |
| 47 | } |
| 48 | |
| 49 | /* If set, any running job will terminate as soon as possible (with an error). |
| 50 | */ |
no test coverage detected