Implemented UnusedFunctionArgumentPruner

This commit is contained in:
Harikrishnan Mulackal
2020-09-03 13:15:38 +02:00
parent 767d06b297
commit e2fd41f097
11 changed files with 309 additions and 4 deletions
+7
View File
@@ -209,6 +209,13 @@ std::map<V, K> invertMap(std::map<K, V> const& originalMap)
return inverseMap;
}
/// Returns a set of keys of a map.
template <typename K, typename V>
std::set<K> keys(std::map<K, V> const& _map)
{
return applyMap(_map, [](auto const& _elem) { return _elem.first; }, std::set<K>{});
}
// String conversion functions, mainly to/from hex/nibble/byte representations.
enum class WhenError