Regrading multiset for custom class

how does the operator overloading helps to compare elements.

@aman17nov1999 operator overloading helps us in having the comparison in the way we want.
In multiset data is stored in a sorted fashion, now for sorting the data, you need to compare two objects, but by default the comparison operators cannot compare objects of custom class, so we need to overload the operator so that the comparision can be made.
If this resolves your doubt mark it as resolved.

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.