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(); }