From fc7bf4c6ec1a637bb9eb240220533af856dc5a66 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Fri, 15 Sep 2023 20:46:06 -0600 Subject: Added full bank extraction --- lib/hj/pyutils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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 keys(std::unordered_map const &map) { } return result; } +template +std::vector keys(std::map const &map) { + std::vector result; + for (auto const &pair: map) { + result.push_back(pair.first); + } + return result; +} } template -- cgit v1.2.3