MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / multimapToMapOfVectors

Function multimapToMapOfVectors

lib/core/utils.h:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template <typename K, typename V>
41std::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 */

Callers 1

testMultimapToMapFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected