sir you said that the ordering in map is defined by the key.
so can we define our defined functor to make the comparison based on value??
Map STL (ordering)
hello @mzk1994
yeah u can define functors but that will only allow u to do key comparisions.
there is no way for value based comparision
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.