Here I see some clear examples of operator overloading. The syntax is as following:
type operator sign (parameters) { /*...*/ }
In the code that I work on I found the following string:
bool operator () (int a)
The first problem that I have with this code is there is not operator sign (nothing like operator+
or operator*
). The second problem is that in front of the arguments (int a)
I see ()
and I cannot find out what it is supposed to do. Could you please help me with that?