aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/util.h b/common/util.h
index 8151564f..4c60292b 100644
--- a/common/util.h
+++ b/common/util.h
@@ -20,8 +20,8 @@
#ifndef UTIL_H
#define UTIL_H
-#include <string>
#include <map>
+#include <string>
#include "nextpnr.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -59,11 +59,12 @@ bool bool_or_default(const Container &ct, const KeyType &key, bool def = false)
};
// Wrap an unordered_map, and allow it to be iterated over sorted by key
-template <typename K, typename V> std::map<K, V> sorted(const std::unordered_map<K, V> &orig) {
+template <typename K, typename V>
+std::map<K, V> sorted(const std::unordered_map<K, V> &orig)
+{
return std::map<K, V>(orig.begin(), orig.end());
};
-
NEXTPNR_NAMESPACE_END
#endif