Lecture overview -- Keyboard shortcut: 'u'  Previous page: A priority queue example -- Keyboard shortcut: 'p'  Next page: Common properties of containers -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Templates and The Standard Library - slide 26 : 39

A map example

We show a simple example of the use of the map standard container

An example taken from The C++ Programming Language page 483

map-1.cpp
Illustration of the map standard container.
input
Sample program input - provided via input redirection.
output
Program output.