Listing 5

company cmp;
 ...
cmp.get<1>().insert(employee(284, "Calvin Smith", 32));

// the following insertion will fail;
// returns a pair<iterator,bool> where the second member is set to false
cmp.get<1>().insert(employee(284, "Robert Garcia", 40));