Check out the new USENIX Web site. next up previous contents
Next: Example Up: Generic Programming and the Previous: Adaptors

Functors

STL also defines function objects (or functors) which are basically template function pointers wrapped in template classes. These classes provide a '()' operator which is used for invoking the function. STL also provides adaptors to convert normal C++ function pointers to function objects.


Sundaresan Neelakantan
Thu May 15 16:11:49 PDT 1997