class SalaryComparator { public: bool operator()(const Employee& a, const Employee& b) { return a.get_salary() < b.get_salary(); } };