demo_load_map_from_vector.cpp File Reference

This file contains examples for loading a map, and a multimap from a std::vector using both a function, and a functor. More...

#include "load_binary_tree_from_random_access_iterator.h"
#include <iostream>
#include <string>
#include <map>
#include <iterator>
#include <vector>

Include dependency graph for demo_load_map_from_vector.cpp:

Go to the source code of this file.

Classes

class  employee
 This is a sample class which can be stored in a map or multimap. More...
class  Create_Map_Pair
 This is a sample functor which is can be used to create pairs for insertion intot a map or multimap. More...

Functions

ostream & operator<< (ostream &os, const employee &e)
std::pair< int, employeecreate_map_pair (const employee &e)
ostream & operator<< (ostream &os, const std::pair< int, employee > &e)
int main ()

Variables

employee workers []


Detailed Description

This file contains examples for loading a map, and a multimap from a std::vector using both a function, and a functor.

Definition in file demo_load_map_from_vector.cpp.


Variable Documentation

employee workers[]

Initial value:

 {
  { 1,   "Jack"},
  { 2,   "Harry"},
  { 3,   "Joe"},
  { 4,   "Jack"},
  { 5,   "Harry"},
  { 6,   "Joe"},
  { 7,   "Jack"},
  { 8,   "Harry"},
  { 9,   "Joe"},
}

Definition at line 82 of file demo_load_map_from_vector.cpp.


Generated on Sat Jun 12 15:19:53 2010 for load_binary_tree_from_random_access_iterator by  doxygen 1.5.8