Multiset for custom stl

why did we overload this operator() only ?? and where this operator is being called ??

underlying data structure that is used for sets is BST.
more specifically red-black-tree

so while storing the data in sorted order we have to compare two values
so in comparing the data we use ()operator

to use our own compare function we have to overload () operator

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.