Hash function for custom class

can you please explain me the idea of creating a hasfunc class …can’t we just create a simple hashfun ??

and why are we overloading function call operator … whtat’s the logic behind it…

please explain