Lecture 6 - Slide 21 : 40 |
A function object (or function-like object or functor) is an object for which an application operator, operator(), has been defined
A function object can be called - pretending that it is a function
![]() | Class Point with overloadings of the application operator. |
![]() | Definition of funny Point application operators. |
![]() | Sample uses of the application operators - Funny and artificial. |
![]() | Definition of then Point application operator. |
![]() | Sample uses of the application operators - slightly more realistic. |