Prepare files for public release

This commit is contained in:
2026-01-24 10:45:51 -05:00
parent 9898e6c975
commit 048e39016a
41 changed files with 2641 additions and 0 deletions

18
include/util/Map.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef CONTROL_MAP_H
#define CONTROL_MAP_H
#include <unordered_map>
#include <vector>
template <typename K, typename V, typename H>
std::vector<V> map_to_values(const std::unordered_map<K, V, H> &map) {
std::vector<V> out;
out.reserve(map.size());
for (auto const &[key, value] : map) {
out.push_back(value);
}
return out;
}
#endif // CONTROL_MAP_H