Introduction
This tutorial presents the use of function objects using Standard Template algorithm functions. The tutorial uses a simple inventory program to illustrate the use of these functors.
The first function object, or functor, is used to facilitate the copy algorithm on a data structure. We'll create a simple product structure for an inventory program.
I'll prepopulate a data file with values for each member of the structure and we'll load them using the copy algorithmn.