| Lecture 6 - Slide 25 : 40 |
We show a couple of example of Adapters
Adaption of an operator (+) and adaptation of a member function (print in Point)
A possible definition of plus. |
Another definition of plus - as a function template. |
Yet another alternative where a lambda expression is used. |
The definition of Point - point.h. |