#ifndef EMPLOYEE_H #define EMPLOYEE_H #include using namespace std; class Employee{ public: Employee(string id, double salary, int seniority): id{id}, salary{salary}, seniority{seniority} { } const string& getId() const{ return id; } bool operator==(const Employee &rhs) const{ return getId() == rhs.getId(); } bool operator!=(const Employee &rhs){ return !(*this == rhs); } private: string id; double salary; int seniority; }; template<> class hash{ public: size_t operator()(const Employee &item){ static hash hf; return hf(item.getId()); } }; #endif