The Pluggable Adapter

A pluggable adapter is an object representing a function. Such objects are called functors.

Pluggable Adapter Pattern

Function Pointers in C++

Functors in C++

Test-It