gdb python helper to traverse c++ std::unordered_map
I use STL container specific python helpers to traverse and print the relevant data of std::set<>, std::map<>, std::vector<> via callback functions.
Now I need the same for std::unordered_map<>.
My old helper use the implementation details of the STL containers. This could break, if the implementation changes.
Is there something like a transparent iterator approach for python printers for iteration through STL containers?
Can someone reference to some demo, howto, or example in the internet, please?