mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Added full bank extraction
This commit is contained in:
@@ -44,6 +44,14 @@ std::vector<T> keys(std::unordered_map<T, X> const &map) {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
template<typename T, typename X>
|
||||
std::vector<T> keys(std::map<T, X> const &map) {
|
||||
std::vector<T> result;
|
||||
for (auto const &pair: map) {
|
||||
result.push_back(pair.first);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user