> Please excuse the dumm question, but is their a simple way to extract the 
> vector<string> from a vector<pair<<string, int> > ?

Depends on what you consider 'simple':

struct firster {
  string const & operator()(FamilyPair const & p) { return p.first; }
};

{
  ...
  std::vector<string> names(family.size());
  std::transform(family.begin(), family.end(), names.begin(), firster());
  ...
}

Andre'

-- 
André Pönitz ........................................ [EMAIL PROTECTED]

Reply via email to