diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2023-09-15 20:46:06 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2023-09-15 20:46:06 -0600 |
| commit | fc7bf4c6ec1a637bb9eb240220533af856dc5a66 (patch) | |
| tree | 367a6e2c240ab0249b14c904588b84f104fe29e2 /lib | |
| parent | 50b6c6f65bc0da4a2c07e24c75dcd19baba60083 (diff) | |
Added full bank extraction
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hj/pyutils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/hj/pyutils.h b/lib/hj/pyutils.h index f7dafbf..f34c1d8 100644 --- a/lib/hj/pyutils.h +++ b/lib/hj/pyutils.h @@ -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> |
