Lecture 6 - Slide 25 : 40
Adapter examples

We show a couple of example of Adapters

Adaption of an operator (+) and adaptation of a member function (print in Point)

plus-1.cpp
An illustration of plus<double>.
plus-3.cpp
A possible definition of plus.
plus-4.cpp
Another definition of plus - as a function template.
plus-5.cpp
Yet another alternative where a lambda expression is used.
memb-adapt-1.cpp
Illustration of member function adaptions.
point.h
The definition of Point - point.h.