#include <string>
#include <map>
#include <iostream>
#include <cstdlib>

int
main (void)
{
  std::map<std::string, int> m;
  std::map<std::string, int>::iterator it;

  m["Fred"] = 5;
  m["Bob"] = 3;

  // Keys are already sorted.
  for (it = m.begin(); it != m.end(); ++it)
  {
    std::cout << it->first << ":" << it->second << std::endl;
  }

  return EXIT_SUCCESS;
}
