can you send the code using user defined class for node?
Not able to implement with custom class?
why in operation overloading function the parameters the passed by reference?and also how we know that which operator to overload in stl to get functional with custom classes?
Hey always () is overloaded for making comparison function of Priority queue class
And its not mandatory to pass by reference
also in sets we overloaded the same operator
I never made a comparison function for sets ,so I can’t comment on that.
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.