class student{
public:
string firstname;
string lastname;
string rollno;
student(string f, string l; string no){
fistname= f;
lastname= l;
rollno = no;
}
bool operator == (const student & s) const {
return rollno == s.rollno ? true : false;
}
};
class hashfn{
public:
size_t operator() (const student &s) const{
return s.firstname.length() + s.lastname.length();
}
};
in the above class how does the bool operator funcion works could you please give an example how to use this in main function.