T
T
Tesla4o2018-06-14 20:47:41
C++ / C#
Tesla4o, 2018-06-14 20:47:41

Map how to iterate over a map and return keys and values?

I can't figure out how to pass through a map like map>
Example

map<string, map<string, string>> getLocaleVal(string s)
{
    map<string, map<string, string>> loc = {
           {"menu_main"}, 
                {"action_menu", "translate"}
};
    return 0;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question