Map and Multimap. ITK 169 Fall 2003. Map. A Standard Templated Library #include <map> Each value of a map is a pair. The pair is made up of a key and an element. The key may be of any type and it is what determines the ordering of the map.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Map and Multimap
map<string name, Person*> mymap;
pair<keyType, elementType> name(first, second);
map<string, double> students;
pair<string, double> aStu(“Smith, Bob”, 3.96);
students[“Brown, Mary”] = 3.5;
Using Dynamic Help