"Johan" writes:
> What does overloading operator () exactly do ?.
The buzz word you need to know to learn more is functor. Aka function
object. A few minutes of googling didn't turn up anything I really liked.
(Wikipedia seems to be down - not a good start). If you have access to a
decent technical library the best write up I know of is in _Mastering
Object-Oriented Design ion C++_ by Horstmann, p. 220.
Note that this is the only way you can have a comma in the argument list.
I found these two links, don't really like either one of them, but they were
the only two of the first thirty or so hits that even seemed worth saving.
http://www.free-web-template.org/fu/functor.html
http://www.sgi.com/tech/stl/functors.html