I am using
std::list<Employee*> Employees;
Employee is a class so my proplem is that i need to sort list, and for doing that i must define operator < but i don't know how to define the operator to take Employee* object this is my define
bool operator <(const Employee *_employee) const { return (id < _employee->id); }
but its work only for Employee < Employee*
but i need the operator to work on Employee* < Employee*
or if there anther solution for sorting the list well help