So far, your use of the standard algorithms has been limited to a few calls to copy, the occasional use of sort, and so on. The main limitation has been that many of the more interesting algorithms require you to supply a function in order to do anything useful. This Exploration takes a look at these more advanced algorithms. In addition, we’ll revisit some of the algorithms you already know, to show you how they, too, can be used in a more advanced manner.
Several programs that you’ve read and written have a common theme: copying a sequence of data, such as a vector or string, and applying some ...