I have a application which uses the multimap from STL in C++.
In multimap, I have to use find function with my custom function. ie Suppose, the contents of my multimap are {"Hello", "World"}, "{"Bye", "World"} and {"Foo", "Bar"}.
I want to search for the key which contains "e" in itself, ie the it should only return "Hello" and "Bye".
How can I do that ?
Basically, instead of the already defined find function which checks for the absolute equality, I want to define my own custom equality ?