Using Algorithms

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.

Transforming Data

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 ...

Get Exploring C++ 11, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.