The comparator code in C++ below is as follows:
struct WordGreaterComparator
{
bool operator()(const std::string & left, const std::string & right) const
{
return (left > right);
}
};
My question is can someone explain what exactly is going on with the part:
operator()(...
What exactly is the purpose of it and what does it mean?