Original Post
🔒 Locked
std::map problems
Advertisement
Also consider that iter points to a std::pair, which basically is the templated struct that holds first and second. This can be used in several functions, for example:
Hope that clears it up.
std::map<std::string, int> _map;std::pair<std::string, int> _pair;_pair.first = "foo";_pair.second = 42;_map.insert(_pair);Hope that clears it up.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement