Noeud:Generic Algorithms and Function Objects, Noeud « Next »:, Noeud « Previous »:Containers and Iterators, Noeud « Up »:libstdc++ and the Standard Template Library



Generic Algorithms and Function Objects

We'll deal with two major topics in one fell swoop in this section: generic algorithms and function objects. Although independent of each other, they work together very nicely and as a result they've been glued into the same section.

To begin with, we'll take a look at a few very simple examples of some arbitrary function objects, as well as explain the basic philosophy behind them. We'll then take a look at a few key generic algorithms, and then combine the two concepts together, using generic algorithms in unison with function objects.