22.6 Setting Behavior Using Template Arguments (cont.)

class CompareByName
{
public:
   bool operator()(const Employee& a,
      const Employee& b) const;
};

bool CompareByName::operator()(const Employee& a,
   const Employee& b) const
{
   return a.get_name() < b.get_name();
}

prev |top |next