When will be the overloaded '==' will be called?

when will be the overloaded ‘==’ will be called?

hi @Shivani999

this is not called explicitly
this will be called when hash map will be created and when you find a value**when you write (cout<<student_map[s3]<<endl)**

this is simillar to sort function’s compare()
in sort we also overload compare function
we don’t call it from main
it is called during sorting when it needs to compare two values

i hope this help you