All queries about std::map having key as custom class object
Hi Once we use to have map for custom class , we need to have < operator defined... It is because third default argument for the map is less function object and hence we need to have this defined. If we have custom comparator , < is not must... What is priority by compiler if both are defined and have different implementation? Another question is need of < operator... I belive that it is required when we insert element... Does it require for deletion or find operation as well ? Find means comparision to check equal to or not... Then how it works without asking us to have overloaded == operator for custom class ?