Use of functors in the nearest car examples

the sir havent saved the code…and i didnt understood that where and how the functors were used in the code explained by sir

Functors are objects that can be treated as though they are a function or function pointer.
basically they are the functional objects

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.