Skip to content

Instantly share code, notes, and snippets.

@lufehr
Created September 13, 2012 07:49
Show Gist options
  • Save lufehr/3712688 to your computer and use it in GitHub Desktop.
Save lufehr/3712688 to your computer and use it in GitHub Desktop.
Blog - C++ std::map/multimap
map<string, int> m;
m["Hans"]=60;
m["Fritz"]=23;
m["Sepp"]=78;
map<string,int> m;
map<string,int>::iterator it = m.begin(); // Zugriff auf Key
(*it).first
// oder
it->first // Zugriff auf Value
(*it).second
// oder
it->second
std::pair<Key,Value>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment